1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-14 19:16:17 +00:00

Add newline when printing lines.

This commit is contained in:
Joseph Crail 2015-05-30 16:34:26 -04:00
parent 505060107c
commit 826d8a6530

View file

@ -170,7 +170,7 @@ fn head<T: Read>(reader: &mut BufReader<T>, count: usize, use_bytes: bool) -> bo
}
} else {
for line in reader.lines().take(count) {
if !pipe_print!("{}", line.unwrap()) {
if !pipe_println!("{}", line.unwrap()) {
return false;
}
}