summary refs log tree commit diff stats
path: root/doc/tut2.rst
diff options
context:
space:
mode:
authorRory O’Kane <rory@roryokane.com>2020-03-25 16:09:23 -0400
committerGitHub <noreply@github.com>2020-03-25 21:09:23 +0100
commita8a464810e0473da61b9daf28311bc76411601bf (patch)
treeb106eb315fe61c3aef572b6ffb6ad4fbd4b8faa3 /doc/tut2.rst
parentfebd48f3432f908e7767d1e7f894748c617d1700 (diff)
downloadNim-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.rst3
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