mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-23 15:55:23 +00:00
Use ^ instead of - in slices
This commit is contained in:
@@ -7,6 +7,6 @@ discard """
|
||||
|
||||
proc test: string =
|
||||
result = "blah"
|
||||
result[1 .. -1]
|
||||
result[1 .. ^1]
|
||||
|
||||
echo test()
|
||||
|
||||
Reference in New Issue
Block a user