Skip to content

Commit 36fdd17

Browse files
fix: resolve clippy lint
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
1 parent 67f8b8d commit 36fdd17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/patterns/behavioural/interpreter.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl<'a> Interpreter<'a> {
8282

8383
fn term(&mut self, out: &mut String) {
8484
match self.next_char() {
85-
Some(ch) if ch.is_digit(10) => out.push(ch),
85+
Some(ch) if ch.is_ascii_digit() => out.push(ch),
8686
Some(ch) => panic!("Unexpected symbol '{ch}'"),
8787
None => panic!("Unexpected end of string"),
8888
}

0 commit comments

Comments
 (0)