diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-01-08 10:34:45 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-01-08 10:34:45 -0500 |
| commit | 5a8d87f5042b5ab86de7c72df4ce84a314878e40 (patch) | |
| tree | d9a8e14011994c5ebdf4525ea5c5b647aae91a6e /std/unicode.zig | |
| parent | 38658a597bc22697c2038c21bdec9f04c9973eb8 (diff) | |
| parent | 598170756cd91b6f300921d256baa72141ec3098 (diff) | |
| download | zig-5a8d87f5042b5ab86de7c72df4ce84a314878e40.tar.gz zig-5a8d87f5042b5ab86de7c72df4ce84a314878e40.zip | |
Merge branch 'master' into llvm6
Diffstat (limited to 'std/unicode.zig')
| -rw-r--r-- | std/unicode.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/unicode.zig b/std/unicode.zig index 6c06eeb73a..c821011558 100644 --- a/std/unicode.zig +++ b/std/unicode.zig @@ -162,7 +162,7 @@ fn testValid(bytes: []const u8, expected_codepoint: u32) { } fn testDecode(bytes: []const u8) -> %u32 { - const length = %return utf8ByteSequenceLength(bytes[0]); + const length = try utf8ByteSequenceLength(bytes[0]); if (bytes.len < length) return error.UnexpectedEof; std.debug.assert(bytes.len == length); return utf8Decode(bytes); |
