Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/uu/factor/src/factor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let print_exponents = matches.get_flag(options::EXPONENTS);

let stdout = stdout();
// We use a smaller buffer here to pass a gnu test. 4KiB appears to be the default pipe size for bash.
// use a smaller buffer here to pass a GNU test.
let mut w = io::BufWriter::with_capacity(4 * 1024, stdout.lock());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually don't know why is this size needed. Perhaps, https://doc.qu1x.dev/bevy_trackball/rustix/pipe/constant.PIPE_BUF.html ?
(I did not test that the const is usable on non unix.)


if let Some(values) = matches.get_many::<String>(options::NUMBER) {
Expand Down
Loading