summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-12-27 10:23:57 +0100
committerAraq <rumpf_a@web.de>2017-12-27 10:23:57 +0100
commitb103b4d3f2c8ac16e8f30f72cf733ace21bbc3a6 (patch)
tree7b25134d36246af6cdd2635654426061ed60d495 /doc
parente0e1241a54b8ad03ac45cdd56b845370a7e050f3 (diff)
downloadNim-b103b4d3f2c8ac16e8f30f72cf733ace21bbc3a6.tar.gz
manual: clarify the rules for integer literals
Diffstat (limited to 'doc')
-rw-r--r--doc/manual/types.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/manual/types.txt b/doc/manual/types.txt
index 56584f257..1477995dd 100644
--- a/doc/manual/types.txt
+++ b/doc/manual/types.txt
@@ -41,7 +41,8 @@ These integer types are pre-defined:
 ``int``
   the generic signed integer type; its size is platform dependent and has the
   same size as a pointer. This type should be used in general. An integer
-  literal that has no type suffix is of this type.
+  literal that has no type suffix is of this type if it is in the range
+  ``low(int32)..high(int32)`` otherwise the literal's type is ``int64``.
 
 intXX
   additional signed integer types of XX bits use this naming scheme