aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/twtstr.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim
index b5524b13..2dd8615b 100644
--- a/src/utils/twtstr.nim
+++ b/src/utils/twtstr.nim
@@ -189,7 +189,7 @@ func substr*(s: seq[Rune], i: int, j: int): seq[Rune] =
return s[min(high(s), i)..min(high(s), j - 1)]
func substr*(s: seq[Rune], i: int): seq[Rune] =
- if i >= high(s) or s.len == 0:
+ if i > high(s) or s.len == 0:
return @[]
return s[min(high(s), i)..high(s)]