diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-10-09 14:31:01 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-10-09 14:31:01 +0200 |
| commit | 6f23b5bb6041ba7eaacdf5f568c11c6b769ef02d (patch) | |
| tree | b6f0646b522c2b69b1229af6b88d4f48dc72cb2d /core/strings | |
| parent | 5c63617191c92820a497c4d1081c92f1410027fc (diff) | |
Fix #4359
Fixes #4359
Diffstat (limited to 'core/strings')
| -rw-r--r-- | core/strings/strings.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/strings/strings.odin b/core/strings/strings.odin index dbc84f8b7..af93ff33c 100644 --- a/core/strings/strings.odin +++ b/core/strings/strings.odin @@ -752,7 +752,7 @@ cut :: proc(s: string, rune_offset := int(0), rune_length := int(0)) -> (res: st count += 1 } - if rune_length <= 1 { + if rune_length < 1 { return s } |