diff options
Diffstat (limited to 'lib/system.nim')
-rw-r--r-- | lib/system.nim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim index 221a538b1..3ba2050b6 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -2055,7 +2055,11 @@ export dollars const NimMajor* {.intdefine.}: int = 1 - ## is the major number of Nim's version. + ## is the major number of Nim's version. Example: + ## + ## .. code-block:: Nim + ## when (NimMajor, NimMinor, NimPatch) >= (1, 3, 1): discard + # See also private symbol `since: (1, 3)` reserved for stdlib NimMinor* {.intdefine.}: int = 3 ## is the minor number of Nim's version. |