Skip to content

Commit

Permalink
no blank line after delete
Browse files Browse the repository at this point in the history
  • Loading branch information
bergey committed Sep 29, 2024
1 parent b9c99ec commit e10cf4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ where R: Iterator<Item = io::Result<String>> {
in_matching_range.push(false);
}

for r_line in input {
'next_line: for r_line in input {
let line = r_line?;
line_number += 1;
read.clear();
Expand Down Expand Up @@ -72,7 +72,7 @@ where R: Iterator<Item = io::Result<String>> {
Equals => writeln!(output, "{}", line_number).unwrap(),
Fd => {
read.clear();
break;
continue 'next_line;
},
D => {
if let Some(ix) = read.find('\n') {
Expand Down

0 comments on commit e10cf4d

Please sign in to comment.