std: Use {s} instead of {} when printing strings
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user