diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-03-13 12:07:06 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-13 12:07:06 -0400 |
| commit | 3eff77bfb52accbc16eb831753ff4917fc2b4873 (patch) | |
| tree | 49fbf58b5b43ebaffc71eabb7aaa1eb4197044f4 /lib/std/io/fixed_buffer_stream.zig | |
| parent | a9297f22671dff800821ff940395411f2adb8582 (diff) | |
| parent | 4905102901e7d798860f8346faeae505a7268968 (diff) | |
| download | zig-3eff77bfb52accbc16eb831753ff4917fc2b4873.tar.gz zig-3eff77bfb52accbc16eb831753ff4917fc2b4873.zip | |
Merge branch 'fengb-format-stream'
Diffstat (limited to 'lib/std/io/fixed_buffer_stream.zig')
| -rw-r--r-- | lib/std/io/fixed_buffer_stream.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/io/fixed_buffer_stream.zig b/lib/std/io/fixed_buffer_stream.zig index 0d091eea72..2f7d613aa6 100644 --- a/lib/std/io/fixed_buffer_stream.zig +++ b/lib/std/io/fixed_buffer_stream.zig @@ -103,7 +103,7 @@ pub fn FixedBufferStream(comptime Buffer: type) type { return self.pos; } - pub fn getWritten(self: Self) []const u8 { + pub fn getWritten(self: Self) Buffer { return self.buffer[0..self.pos]; } |
