summary refs log tree commit diff stats
path: root/doc/manual.rst
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2019-01-30 19:50:20 +0100
committerGitHub <noreply@github.com>2019-01-30 19:50:20 +0100
commit3d6f2b77b8494265bda01f82746b427c2574da30 (patch)
tree661e49e2b1cc3101e609cd74260a39f48214d2fe /doc/manual.rst
parent47037ebee32792f5cc0ef292b7f2fc7d4c734936 (diff)
downloadNim-3d6f2b77b8494265bda01f82746b427c2574da30.tar.gz
fix #9725 (#10503)
Diffstat (limited to 'doc/manual.rst')
-rw-r--r--doc/manual.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/manual.rst b/doc/manual.rst
index f8a588791..f17cab106 100644
--- a/doc/manual.rst
+++ b/doc/manual.rst
@@ -251,6 +251,10 @@ Another advantage is that it frees the programmer from remembering
 the exact spelling of an identifier. The exception with respect to the first
 letter allows common code like ``var foo: Foo`` to be parsed unambiguously.
 
+Note that this rule also applies to keywords, meaning that ``notin`` is
+the same as ``notIn`` and ``not_in`` (all-lowercase version (``notin``, ``isnot``)
+is the preferred way of writing keywords).
+
 Historically, Nim was a fully `style-insensitive`:idx: language. This meant that
 it was not case-sensitive and underscores were ignored and there was not even a
 distinction between ``foo`` and ``Foo``.