1 parent 8a37328 commit 71a5305Copy full SHA for 71a5305
1 file changed
content/posts/odin-guide.md
@@ -667,7 +667,7 @@ substring: string = str[0:5] // "Hello"
667
str := string(cstr) // O(n) conversion as it requires search from the zero-terminator
668
```
669
670
-When iterating a ``string``, the characters will be utf-8 runes and not bytes. ``for in`` assumes the string is utf encoded.
+When iterating a ``string`` with ``for in``, odin decodes the string utf-8 and produces ``rune`` values rather than bytes.
671
672
```odin
673
str: string = "test"
0 commit comments