Skip to content

Commit

Permalink
Reorder args
Browse files Browse the repository at this point in the history
  • Loading branch information
Lipen committed May 6, 2023
1 parent 51d704d commit 50bfbea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regex-thompson/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ impl Regex {
}
}

pub fn is_match(input: &str, pattern: &str) -> bool {
pub fn is_match(pattern: &str, input: &str) -> bool {
let re = Regex::new(pattern);
re.matches(input)
}
Expand Down

0 comments on commit 50bfbea

Please sign in to comment.