diff options
| author | LemonBoy <thatlemon@gmail.com> | 2020-11-26 09:48:12 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-01-02 17:12:57 -0700 |
| commit | dd973fb365dbbe11ce5beac8b4889bfab3fddc4d (patch) | |
| tree | e82adf746186ec50e1aa11c5bd9f4a677e93046d /lib/std/io/fixed_buffer_stream.zig | |
| parent | 5a06fdfa5525920810005e73eaa1b6e79a6472ca (diff) | |
| download | zig-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.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 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()); } |
