Skip to content

Commit

Permalink
Replace starts_with("#") with starts_with('#')
Browse files Browse the repository at this point in the history
  • Loading branch information
ageron committed Aug 3, 2024
1 parent 526e1f6 commit e5a1a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/repl_cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub fn main() -> i32 {
if line
.lines()
.map(|ln| ln.trim())
.all(|ln| ln.is_empty() || ln.starts_with("#"))
.all(|ln| ln.is_empty() || ln.starts_with('#'))
{
// if there are only whitespaces and comments, don't run it
println!();
Expand Down

0 comments on commit e5a1a84

Please sign in to comment.