mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-01 13:37:48 +00:00
Merge pull request #4776 from vikiminki/factor_flush
Add flush after calculating factor
This commit is contained in:
commit
f9b60c4232
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ fn print_factors_str(
|
||||||
writeln!(factors_buffer, "{}:{}", x, factor(x))?;
|
writeln!(factors_buffer, "{}:{}", x, factor(x))?;
|
||||||
}
|
}
|
||||||
w.write_all(factors_buffer.as_bytes())?;
|
w.write_all(factors_buffer.as_bytes())?;
|
||||||
|
w.flush()?;
|
||||||
Ok(())
|
Ok(())
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue