diff options
author | Juan Carlos <JuanCarlospaco@gmail.com> | 2020-11-14 15:45:13 -0300 |
---|---|---|
committer | Juan Carlos <JuanCarlospaco@gmail.com> | 2020-11-14 15:45:13 -0300 |
commit | c56a6133bb3c1d2e862726e10e445d477dd6d15e (patch) | |
tree | e40bdfeb01355ef4a82558b3088f76ff2c6e2015 | |
parent | 9ab1a86b5bfb8f5647b9f9cb4ab48a5b5eb55707 (diff) | |
download | Nim-c56a6133bb3c1d2e862726e10e445d477dd6d15e.tar.gz |
Fix #15806
-rw-r--r-- | doc/manual.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/manual.rst b/doc/manual.rst index 6dfff55a6..c80b60ea0 100644 --- a/doc/manual.rst +++ b/doc/manual.rst @@ -320,6 +320,7 @@ Stropping allows the same letter sequence to be used both as a keyword and as an identifier, this simplifies parsing and `FFI <https://en.wikipedia.org/wiki/Foreign_function_interface>`_ with languages where that identifier is not a reserved keyword. + For example, allowing a variable named `if` without clashing with the keyword `if`. In Nim, this is achieved via backticks, allowing any reserved word to be used as an identifier. @@ -330,7 +331,7 @@ Examples .. code-block:: nim type Type = object - `int`: int + `int`: int let `object` = Type(`int`: 9) assert `object` is Type |