mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-17 18:17:11 +00:00
[ci skip] docs: make the syntax for generics easy to look up (#13754)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user