diff options
author | Rory O’Kane <rory@roryokane.com> | 2020-03-25 16:09:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-25 21:09:23 +0100 |
commit | a8a464810e0473da61b9daf28311bc76411601bf (patch) | |
tree | b106eb315fe61c3aef572b6ffb6ad4fbd4b8faa3 /doc/tut2.rst | |
parent | febd48f3432f908e7767d1e7f894748c617d1700 (diff) | |
download | Nim-a8a464810e0473da61b9daf28311bc76411601bf.tar.gz |
[ci skip] docs: make the syntax for generics easy to look up (#13754)
Diffstat (limited to 'doc/tut2.rst')
-rw-r--r-- | doc/tut2.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/tut2.rst b/doc/tut2.rst index 9dbfa39c3..419e06930 100644 --- a/doc/tut2.rst +++ b/doc/tut2.rst @@ -469,7 +469,8 @@ Generics ======== 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: .. code-block:: nim |