From d61beef7e08984d63a0c8b554a87d85a20ab7b15 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Wed, 14 Jan 2026 22:13:15 +0100 Subject: [PATCH] Fix String.replace not dropping temp mem. --- lib/std/core/string.c3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/core/string.c3 b/lib/std/core/string.c3 index f582f55b3..387e52bce 100644 --- a/lib/std/core/string.c3 +++ b/lib/std/core/string.c3 @@ -190,7 +190,7 @@ fn String join(Allocator allocator, String[] s, String joiner) @param [&inout] allocator : `The allocator to use for the String` @return "The new string with the elements replaced" *> -fn String String.replace(self, Allocator allocator, String needle, String new_str) @nodiscard +fn String String.replace(self, Allocator allocator, String needle, String new_str) @nodiscard => @pool() { Splitter s = self.tokenize_all(needle); DString d;