mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 05:20:34 +00:00
Uses getWritten instead of .pos + slicing
Co-authored-by: Joachim Schmidt <joachim.schmidt557@outlook.com>
This commit is contained in:
parent
ada06e2996
commit
6701046cdd
@ -578,7 +578,7 @@ fn formatFloatValue(
|
||||
@compileError("Unknown format string: '" ++ fmt ++ "'");
|
||||
}
|
||||
|
||||
return formatBuf(buf[0..buf_stream.pos], options, writer);
|
||||
return formatBuf(buf_stream.getWritten(), options, writer);
|
||||
}
|
||||
|
||||
pub fn formatText(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user