We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc5ce72 commit d923c58Copy full SHA for d923c58
lib/system/indices.nim
@@ -80,8 +80,6 @@ proc `[]`*[T, U: Ordinal](s: string, x: HSlice[T, U]): string {.inline, systemRa
80
## var s = "abcdef"
81
## assert s[1..3] == "bcd"
82
## ```
83
- # Workaround bug #22852
84
- result = ""
85
let a = s ^^ x.a
86
let L = (s ^^ x.b) - a + 1
87
result = newString(L)
0 commit comments