This commit is contained in:
Araq 2018-09-03 09:14:12 +02:00
commit 077f24ab2d

View file

@ -504,7 +504,7 @@ following characters::
These keywords are also operators: These keywords are also operators:
``and or not xor shl shr div mod in notin is isnot of``. ``and or not xor shl shr div mod in notin is isnot of``.
`=`:tok:, `:`:tok:, `::`:tok: are not available as general operators; they `.`:tok: `=`:tok:, `:`:tok:, `::`:tok: are not available as general operators; they
are used for other notational purposes. are used for other notational purposes.
``*:`` is as a special case treated as the two tokens `*`:tok: and `:`:tok: ``*:`` is as a special case treated as the two tokens `*`:tok: and `:`:tok:
@ -4633,7 +4633,7 @@ type is an instance of it:
.. code-block:: nim .. code-block:: nim
:test: "nim c $1" :test: "nim c $1"
import future, typetraits import sugar, typetraits
type type
Functor[A] = concept f Functor[A] = concept f