aboutsummaryrefslogtreecommitdiff
path: root/lib/std/io/fixed_buffer_stream.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-03-13 12:07:06 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-03-13 12:07:06 -0400
commit3eff77bfb52accbc16eb831753ff4917fc2b4873 (patch)
tree49fbf58b5b43ebaffc71eabb7aaa1eb4197044f4 /lib/std/io/fixed_buffer_stream.zig
parenta9297f22671dff800821ff940395411f2adb8582 (diff)
parent4905102901e7d798860f8346faeae505a7268968 (diff)
downloadzig-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.zig2
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];
}