Uses getWritten instead of .pos + slicing
Co-authored-by: Joachim Schmidt <joachim.schmidt557@outlook.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user