aboutsummaryrefslogtreecommitdiff
path: root/lib/std/io/fixed_buffer_stream.zig
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2020-11-26 09:48:12 +0100
committerAndrew Kelley <andrew@ziglang.org>2021-01-02 17:12:57 -0700
commitdd973fb365dbbe11ce5beac8b4889bfab3fddc4d (patch)
treee82adf746186ec50e1aa11c5bd9f4a677e93046d /lib/std/io/fixed_buffer_stream.zig
parent5a06fdfa5525920810005e73eaa1b6e79a6472ca (diff)
downloadzig-dd973fb365dbbe11ce5beac8b4889bfab3fddc4d.tar.gz
zig-dd973fb365dbbe11ce5beac8b4889bfab3fddc4d.zip
std: Use {s} instead of {} when printing strings
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 e698ce061e..b36949e538 100644
--- a/lib/std/io/fixed_buffer_stream.zig
+++ b/lib/std/io/fixed_buffer_stream.zig
@@ -147,7 +147,7 @@ test "FixedBufferStream output" {
var fbs = fixedBufferStream(&buf);
const stream = fbs.writer();
- try stream.print("{}{}!", .{ "Hello", "World" });
+ try stream.print("{s}{s}!", .{ "Hello", "World" });
testing.expectEqualSlices(u8, "HelloWorld!", fbs.getWritten());
}