Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yihozhang committed Jul 30, 2024
1 parent 79acce6 commit edcd1bc
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 @@ -63,12 +63,12 @@ fn should_eval(curr_cmd: &str) -> bool {
}
';' => {
// `any` moves the iterator forward until it finds a match
if indices.any(|ch| ch == '\n') {
if !indices.any(|ch| ch == '\n') {
return false;
}
}
'"' => {
if indices.any(|ch| ch == '"') {
if !indices.any(|ch| ch == '"') {
return false;
}
}
Expand Down

0 comments on commit edcd1bc

Please sign in to comment.