Use ^ instead of - in slices
This commit is contained in:
parent
2b80d75aa2
commit
64903e7050
10 changed files with 93 additions and 93 deletions
|
|
@ -7,6 +7,6 @@ discard """
|
|||
|
||||
proc test: string =
|
||||
result = "blah"
|
||||
result[1 .. -1]
|
||||
result[1 .. ^1]
|
||||
|
||||
echo test()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue