aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/string_immutable.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_immutable.zig b/src/string_immutable.zig
index 598495efa..545e807b4 100644
--- a/src/string_immutable.zig
+++ b/src/string_immutable.zig
@@ -956,7 +956,7 @@ pub fn toUTF16Alloc(allocator: std.mem.Allocator, bytes: []const u8, comptime fa
else => {
if (fail_if_invalid) {
allocator.free(out);
- return error.InvalidUTF8;
+ return error.InvalidByteSequence;
}
first_non_ascii = @truncate(u32, result.count);