Skip to content

Commit

Permalink
Fix mismatching Kleene operators
Browse files Browse the repository at this point in the history
  • Loading branch information
ia0 committed Jul 2, 2019
1 parent 848e0a2 commit dd702cc
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libcore/tests/ascii.rs
Original file line number Diff line number Diff line change
@@ -151,7 +151,7 @@ macro_rules! assert_none {
stringify!($what), b);
}
}
)*
)+
}};
($what:ident, $($str:tt),+,) => (assert_none!($what,$($str),+))
}
2 changes: 1 addition & 1 deletion src/libcore/tests/pattern.rs
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ use std::str::pattern::*;
macro_rules! search_asserts {
($haystack:expr, $needle:expr, $testname:expr, [$($func:ident),*], $result:expr) => {
let mut searcher = $needle.into_searcher($haystack);
let arr = [$( Step::from(searcher.$func()) ),+];
let arr = [$( Step::from(searcher.$func()) ),*];
assert_eq!(&arr[..], &$result, $testname);
}
}

0 comments on commit dd702cc

Please sign in to comment.