aboutsummaryrefslogtreecommitdiff
path: root/core/bytes
diff options
context:
space:
mode:
authorFourteenBrush <74827262+FourteenBrush@users.noreply.github.com>2024-01-17 13:37:06 +0100
committerGitHub <noreply@github.com>2024-01-17 13:37:06 +0100
commit05e27fa92d08e7cb2643c479db3717e722af01c7 (patch)
tree7bb41143d78dc6ca4e240b4350fea8de814fa64b /core/bytes
parent7ee7f4b06443c651c9001bcffac870965df7a4d7 (diff)
Fix typo in bytes.scrub
Diffstat (limited to 'core/bytes')
-rw-r--r--core/bytes/bytes.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/bytes/bytes.odin b/core/bytes/bytes.odin
index d39f01b06..208949fd8 100644
--- a/core/bytes/bytes.odin
+++ b/core/bytes/bytes.odin
@@ -895,7 +895,7 @@ split_multi_iterator :: proc(s: ^[]byte, substrs: [][]byte, skip_empty := false)
-// scrub scruvs invalid utf-8 characters and replaces them with the replacement string
+// Scrubs invalid utf-8 characters and replaces them with the replacement string
// Adjacent invalid bytes are only replaced once
scrub :: proc(s: []byte, replacement: []byte, allocator := context.allocator) -> []byte {
str := s