aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/text.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-05-06 19:27:45 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-05-06 19:27:45 -0400
commit817adbf22592955244aecad435ce0555707dba1a (patch)
tree5bde62f686921d348b74e78903f1b8ed6bf746d1 /src/stdlib/text.c
parentce098c6401335b14ed9f92ee795d5ba6afb45d2e (diff)
Error checking for path components
Diffstat (limited to 'src/stdlib/text.c')
-rw-r--r--src/stdlib/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdlib/text.c b/src/stdlib/text.c
index 8607e165..cc8a4daf 100644
--- a/src/stdlib/text.c
+++ b/src/stdlib/text.c
@@ -1092,7 +1092,7 @@ public Text_t Text$replace(Text_t text, Text_t target, Text_t replacement)
return result;
}
-public bool Text$has(Text_t text, Text_t target)
+public PUREFUNC bool Text$has(Text_t text, Text_t target)
{
TextIter_t text_state = NEW_TEXT_ITER_STATE(text), target_state = NEW_TEXT_ITER_STATE(target);
for (int64_t i = 0; i < text.length; i++) {