diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2024-05-28 20:40:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-28 20:40:41 +0800 |
commit | d923c581c118b9ea891785bbb828c3cdede587b4 (patch) | |
tree | 0bde021c3e0fd7078b48bd28cb32969594e8fa57 | |
parent | cc5ce72376872c7080543593ee5e7234b16a62bd (diff) | |
download | Nim-d923c581c118b9ea891785bbb828c3cdede587b4.tar.gz |
revert #23436; remove workaround (#23653)
revert #23436
-rw-r--r-- | lib/system/indices.nim | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/system/indices.nim b/lib/system/indices.nim index 8f0acb931..f4a140346 100644 --- a/lib/system/indices.nim +++ b/lib/system/indices.nim @@ -80,8 +80,6 @@ proc `[]`*[T, U: Ordinal](s: string, x: HSlice[T, U]): string {.inline, systemRa ## var s = "abcdef" ## assert s[1..3] == "bcd" ## ``` - # Workaround bug #22852 - result = "" let a = s ^^ x.a let L = (s ^^ x.b) - a + 1 result = newString(L) |