From c56a6133bb3c1d2e862726e10e445d477dd6d15e Mon Sep 17 00:00:00 2001 From: Juan Carlos Date: Sat, 14 Nov 2020 15:45:13 -0300 Subject: [PATCH] Fix #15806 --- doc/manual.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/manual.rst b/doc/manual.rst index 6dfff55a63..c80b60ea0a 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 `_ 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