1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-02 05:57:46 +00:00

Add flush after calculating factor

This commit is contained in:
vix 2023-04-23 20:29:54 +02:00
parent 698bdf5f9a
commit f9b7423eef

View file

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