hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 6d331a37a8c1baf17e7eccb966a9c21ef041b20e
parent 89b0871f00d7a530e67e92c99025c8b037106be9
Author: Sebastian <sebastian@sebsite.pw>
Date:   Thu, 21 Apr 2022 15:53:15 -0400

encoding::base{32,64}: style

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mencoding/base32/base32.ha | 2+-
Mencoding/base64/base64.ha | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/encoding/base32/base32.ha b/encoding/base32/base32.ha @@ -459,7 +459,7 @@ export fn decodestr(enc: *encoding, in: str) ([]u8 | errors::invalid) = { let buf: [1]u8 = [0...]; let valid = false; for (true) match(io::read(&dec, buf)) { - case errors::invalid=> + case errors::invalid => break; case size => valid = true; diff --git a/encoding/base64/base64.ha b/encoding/base64/base64.ha @@ -448,7 +448,7 @@ export fn decode( let buf: [1]u8 = [0...]; let valid = false; for (true) match(io::read(&decoder, buf)) { - case errors::invalid=> + case errors::invalid => break; case size => valid = true;