Skip to content

Commit d49c549

Browse files
committed
fix test
1 parent 0e5f430 commit d49c549

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/luars/src/stdlib/string/string_format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ fn format_sci(
655655
l: &mut LuaState,
656656
) -> LuaResult<()> {
657657
let num = get_num(arg, l).map_err(|e| l.error(e))?;
658-
let precision = spec.precision.map(|p| if p == 0 { 6 } else { p });
658+
let precision = spec.precision;
659659

660660
// Format the number
661661
let mut result = if let Some(prec) = precision {

0 commit comments

Comments
 (0)