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:
parent
505060107c
commit
826d8a6530
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue