From: Brendan Hansen Date: Tue, 26 Oct 2021 13:09:47 +0000 (-0500) Subject: used the wrong str X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=78173d07ae9a820ac625b88b6a9588ca1638e882;p=onyx.git used the wrong str --- diff --git a/core/string.onyx b/core/string.onyx index 9b6da85d..6159eb2b 100644 --- a/core/string.onyx +++ b/core/string.onyx @@ -262,7 +262,7 @@ advance :: #match { } replace :: (s: str, to_replace: u8, replace_with: u8) { - for ^c: str { + for ^c: s { if *c == to_replace do *c = replace_with; } }