diff options
author | 2023-02-02 15:58:10 -0800 | |
---|---|---|
committer | 2023-02-02 15:58:10 -0800 | |
commit | 198322073d43be0de811abfeb5f6111369502a81 (patch) | |
tree | d0e8b46886a7229787380429afe3e307013f06c6 /src/string_immutable.zig | |
parent | b12762af6c0fa3576733ca5e4d8ef8e69a1848cd (diff) | |
download | bun-198322073d43be0de811abfeb5f6111369502a81.tar.gz bun-198322073d43be0de811abfeb5f6111369502a81.tar.zst bun-198322073d43be0de811abfeb5f6111369502a81.zip |
Update string_immutable.zig
Diffstat (limited to 'src/string_immutable.zig')
-rw-r--r-- | src/string_immutable.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_immutable.zig b/src/string_immutable.zig index b09d6bd2d..68c22b773 100644 --- a/src/string_immutable.zig +++ b/src/string_immutable.zig @@ -3542,7 +3542,7 @@ test "firstNonASCII16" { } } -fn getSharedBuffer() void { +fn getSharedBuffer() []u8 { return std.mem.asBytes(shared_temp_buffer_ptr orelse brk: { shared_temp_buffer_ptr = bun.default_allocator.create([32 * 1024]u8) catch unreachable; break :brk shared_temp_buffer_ptr.?; |