system: <: add example of output to documentation

This commit is contained in:
Simon Ruderich
2016-09-15 04:23:54 +02:00
parent a6e32365f7
commit e28bed3d84

View File

@@ -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``.