From 78173d07ae9a820ac625b88b6a9588ca1638e882 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Tue, 26 Oct 2021 08:09:47 -0500 Subject: [PATCH] used the wrong str --- core/string.onyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.25.1