[ci skip] docs: make the syntax for generics easy to look up (#13754)

This commit is contained in:
Rory O’Kane 2020-03-25 16:09:23 -04:00 • committed by GitHub
commit a8a464810e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -469,7 +469,8 @@ Generics
======== ========
Generics are Nim's means to parametrize procs, iterators or types Generics are Nim's means to parametrize procs, iterators or types
with `type parameters`:idx:. They are most useful for efficient type safe with `type parameters`:idx:. Generic parameters are written within square
brackets, for example ``Foo[T]``. They are most useful for efficient type safe
containers: containers:
.. code-block:: nim .. code-block:: nim