aboutsummaryrefslogtreecommitdiff
path: root/core/strings/strings.odin
diff options
context:
space:
mode:
authorJon Lipstate <Jon@Lipstate.com>2023-04-26 18:00:14 -0700
committerJon Lipstate <Jon@Lipstate.com>2023-04-26 18:00:14 -0700
commit67fa5df89c70f7da958443b4ec4cbdc3b515cffa (patch)
tree85a56aa19bee605413ff84c234677665d8293c78 /core/strings/strings.odin
parent023cc9ca541d7462a323147cbc056fe4303f299f (diff)
fix typo, add builder sample
Diffstat (limited to 'core/strings/strings.odin')
-rw-r--r--core/strings/strings.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/strings/strings.odin b/core/strings/strings.odin
index 39cbe3654..d9387c93e 100644
--- a/core/strings/strings.odin
+++ b/core/strings/strings.odin
@@ -263,7 +263,7 @@ compare :: proc(lhs, rhs: string) -> (result: int) {
return mem.compare(transmute([]byte)lhs, transmute([]byte)rhs)
}
/*
-Returns the byte offset of the rune `r` in the string `s`, -1 when not found
+Checks if rune `r` in the string `s`
Inputs:
- s: The input string