From d4b10514fbe3afc7229efe74b015a664b52eba33 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 24 Nov 2024 16:36:27 -0500 Subject: Clean up some more null->none renames and fix the documentation. Also change the literal syntax to `NONE:T` instead of `!T` --- examples/base64/base64.tm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/base64') diff --git a/examples/base64/base64.tm b/examples/base64/base64.tm index f3762628..bed94ac1 100644 --- a/examples/base64/base64.tm +++ b/examples/base64/base64.tm @@ -59,10 +59,10 @@ lang Base64: output[dest+2] = _EQUAL_BYTE output[dest+3] = _EQUAL_BYTE - return Base64.without_escaping(Text.from_bytes(output) or return !Base64) + return Base64.without_escaping(Text.from_bytes(output) or return NONE) func decode_text(b64:Base64 -> Text?): - return Text.from_bytes(b64:decode_bytes() or return !Text) + return Text.from_bytes(b64:decode_bytes() or return NONE) func decode_bytes(b64:Base64 -> [Byte]?): bytes := b64.text_content:bytes() -- cgit v1.2.3