Uses getWritten instead of .pos + slicing

Co-authored-by: Joachim Schmidt <joachim.schmidt557@outlook.com>
This commit is contained in:
Felix Queißner 2020-08-09 17:40:58 +02:00 committed by GitHub
parent ada06e2996
commit 6701046cdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(