system: <: add example of output to documentation
This commit is contained in:
parent
a6e32365f7
commit
e28bed3d84
1 changed files with 1 additions and 1 deletions
|
|
@ -605,7 +605,7 @@ proc `<`*[T](x: Ordinal[T]): T {.magic: "UnaryLt", noSideEffect.}
|
|||
## unary ``<`` that can be used for nice looking excluding ranges:
|
||||
##
|
||||
## .. code-block:: nim
|
||||
## for i in 0 .. <10: echo i
|
||||
## for i in 0 .. <10: echo i #=> 0 1 2 3 4 5 6 7 8 9
|
||||
##
|
||||
## Semantically this is the same as ``pred``.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue