Skip to content

Commit 6701046

Browse files
Uses getWritten instead of .pos + slicing
Co-authored-by: Joachim Schmidt <[email protected]>
1 parent ada06e2 commit 6701046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/fmt.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

584584
pub fn formatText(

0 commit comments

Comments
 (0)