summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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.
'>922e216b8 ^
e25474154 ^


902bf0587 ^
e25474154 ^







e25474154 ^

4de84024e ^


e25474154 ^
4de84024e ^
e25474154 ^
902bf0587 ^

4de84024e ^



e25474154 ^



4de84024e ^
e25474154 ^

4de84024e ^


e25474154 ^
4de84024e ^


e25474154 ^





e25474154 ^
4de84024e ^
e25474154 ^
4de84024e ^

e25474154 ^
4de84024e ^

e25474154 ^







4de84024e ^
e25474154 ^






4de84024e ^
e25474154 ^



4de84024e ^
e25474154 ^
4de84024e ^










902bf0587 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104