updated the manual
This commit is contained in:
parent
3bcafb1c3a
commit
0d234af399
2 changed files with 6 additions and 34 deletions
|
|
@ -66,9 +66,6 @@ When multiple typedesc params are present, they act like a distinct type class
|
|||
one can use a named alias or an explicit `typedesc` generic param:
|
||||
|
||||
.. code-block:: nim
|
||||
|
||||
# `type1` and `type2` are aliases for typedesc available from system.nim
|
||||
proc acceptOnlyTypePairs(A, B: type1; C, D: type2)
|
||||
proc acceptOnlyTypePairs[T: typedesc, U: typedesc](A, B: T; C, D: U)
|
||||
|
||||
Once bound, typedesc params can appear in the rest of the proc signature:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue