summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFredrik Høisæther Rasch <fredrik.rasch@gmail.com>2017-08-24 20:53:50 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-08-24 20:53:50 +0200
commit496716ee9ba659ea33b234a32af5f972cd078aab (patch)
treeba5f964cb7dbae335a6f401a5ae621f4db283c68
parent82453825e98872862fc0adab536d2dd8c6f24116 (diff)
downloadNim-496716ee9ba659ea33b234a32af5f972cd078aab.tar.gz
Replaced en-dash with hyphen for identifier equality (#6272)
-rw-r--r--doc/manual/lexing.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/manual/lexing.txt b/doc/manual/lexing.txt
index d4c11adf7..3147dd97c 100644
--- a/doc/manual/lexing.txt
+++ b/doc/manual/lexing.txt
@@ -130,7 +130,7 @@ Two identifiers are considered equal if the following algorithm returns true:
 .. code-block:: nim
   proc sameIdentifier(a, b: string): bool =
     a[0] == b[0] and
-      a.replace(re"_|–", "").toLower == b.replace(re"_|–", "").toLower
+      a.replace("_", "").toLower == b.replace("_", "").toLower
 
 That means only the first letters are compared in a case sensitive manner. Other
 letters are compared case insensitively and underscores are ignored.