aboutsummaryrefslogtreecommitdiff
path: root/core/strings/strings.odin
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-04-05 16:36:26 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2025-04-05 16:36:26 +0200
commitf7c4c80ef3e50d72e2ec499ef395ed19c514d512 (patch)
tree718a167c7615a474b3b306e06e3269c7194853da /core/strings/strings.odin
parent8480295b60378e94d4d91e262fabd0a91e5b1150 (diff)
Fix broken examples in documentation tester.
No more: ``` We could not find the procedure "pkg_foo_example :: proc()" needed to test the example created for "pkg.foo" The following procedures were found: bar() ```
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 52230f572..247638cd6 100644
--- a/core/strings/strings.odin
+++ b/core/strings/strings.odin
@@ -787,7 +787,7 @@ Example:
import "core:fmt"
import "core:strings"
- cut_example :: proc() {
+ cut_clone_example :: proc() {
fmt.println(strings.cut_clone("some example text", 0, 4)) // -> "some"
fmt.println(strings.cut_clone("some example text", 2, 2)) // -> "me"
fmt.println(strings.cut_clone("some example text", 5, 7)) // -> "example"