Skip to content

Commit d923c58

Browse files
authored
revert #23436; remove workaround (#23653)
revert #23436
1 parent cc5ce72 commit d923c58

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/system/indices.nim

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ proc `[]`*[T, U: Ordinal](s: string, x: HSlice[T, U]): string {.inline, systemRa
8080
## var s = "abcdef"
8181
## assert s[1..3] == "bcd"
8282
## ```
83-
# Workaround bug #22852
84-
result = ""
8583
let a = s ^^ x.a
8684
let L = (s ^^ x.b) - a + 1
8785
result = newString(L)

0 commit comments

Comments
 (0)