From 7a4f2e73addf6dfcde2a6b17b62b961608e556a0 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 9 Nov 2024 15:11:11 -0500 Subject: Rename `from_text()` to `parse()` --- stdlib/bools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stdlib/bools.c') diff --git a/stdlib/bools.c b/stdlib/bools.c index bc1a6445..9a2c8cd6 100644 --- a/stdlib/bools.c +++ b/stdlib/bools.c @@ -22,7 +22,7 @@ PUREFUNC public Text_t Bool$as_text(const bool *b, bool colorize, const TypeInfo return *b ? Text("yes") : Text("no"); } -PUREFUNC public OptionalBool_t Bool$from_text(Text_t text) +PUREFUNC public OptionalBool_t Bool$parse(Text_t text) { if (Text$equal_ignoring_case(text, Text("yes")) || Text$equal_ignoring_case(text, Text("on")) -- cgit v1.2.3