fix typo, add builder sample

This commit is contained in:
Jon Lipstate
2023-04-26 18:00:14 -07:00
parent 023cc9ca54
commit 67fa5df89c
2 changed files with 28 additions and 2 deletions
+1 -1
View File
@@ -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