aboutsummaryrefslogtreecommitdiff
path: root/src/string_immutable.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-02-02 15:58:10 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-02-02 15:58:10 -0800
commit198322073d43be0de811abfeb5f6111369502a81 (patch)
treed0e8b46886a7229787380429afe3e307013f06c6 /src/string_immutable.zig
parentb12762af6c0fa3576733ca5e4d8ef8e69a1848cd (diff)
downloadbun-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.zig2
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.?;