authorgravatar for xq@random-projects.netFelix "xq" Queißner <xq@random-projects.net> 2020-08-09 17:40:58+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2020-08-09 17:40:58+02:00
log6701046cdd85d7a702be38a593e8385a5dfb4562
treef73c7d3c272b17295a4d5ef6a71bb85d51620fc9
parentada06e2996c70f5d25c60f06d2d171e105a020ad
signature Signed by PGP key 4AEE18F83AFDEB23

Uses getWritten instead of .pos + slicing

Co-authored-by: Joachim Schmidt <joachim.schmidt557@outlook.com>

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/fmt.zig+1-1
......@@ -578,7 +578,7 @@ fn formatFloatValue(
578578 @compileError("Unknown format string: '" ++ fmt ++ "'");
579579 }
580580
581 return formatBuf(buf[0..buf_stream.pos], options, writer);
581 return formatBuf(buf_stream.getWritten(), options, writer);
582582}
583583
584584pub fn formatText(