diff options
Diffstat (limited to 'lib/system.nim')
-rw-r--r-- | lib/system.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim index ad448c1d1..ba0690ace 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -2874,7 +2874,7 @@ when hostOS != "standalone": ## ## .. code-block:: nim ## var s = "abcdef" - ## s[1 .. -2] = "xyz" + ## s[1 .. ^2] = "xyz" ## assert s == "axyzf" var a = x.a var L = x.b - a + 1 |