From 7914eed7b4a37b9c0b0da9aa9481d9666353b45e Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Tue, 25 May 2021 15:19:33 +0200 Subject: Write a few more tests --- src/base32.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/base32.zig') diff --git a/src/base32.zig b/src/base32.zig index 749c313..339566d 100644 --- a/src/base32.zig +++ b/src/base32.zig @@ -132,7 +132,7 @@ pub const Encoder = struct { } }; -pub const DecodeError = error{CorruptInputError}; +pub const DecodeError = error{CorruptInput}; pub const Decoder = struct { const Self = @This(); @@ -178,7 +178,7 @@ pub const Decoder = struct { // '2' -> 26 return @truncate(u5, c - @as(u8, '2') + 26); } else { - return error.CorruptInputError; + return error.CorruptInput; } } -- cgit v1.2.3