summaryrefslogtreecommitdiff
path: root/iter_patterns
diff options
context:
space:
mode:
authorNadrieril2019-03-20 00:44:27 +0100
committerNadrieril2019-03-20 00:44:27 +0100
commit640a36906361ef5ef98fb66fd37246f084739d25 (patch)
tree630a18bf8bfc7820c12e0144738878eca8ff6331 /iter_patterns
parent3a967a0eef8b69f7fc8bbc7655945edbbe2b579e (diff)
Handle simple parsing cases with new macros
Diffstat (limited to '')
-rw-r--r--iter_patterns/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/iter_patterns/src/lib.rs b/iter_patterns/src/lib.rs
index 75fe51c..14ed4c9 100644
--- a/iter_patterns/src/lib.rs
+++ b/iter_patterns/src/lib.rs
@@ -138,7 +138,7 @@ macro_rules! match_vec {
* // x: usize
* // y: impl Iterator<Option<usize>>
* // z: Option<usize>
- * }
+ * },
* [x, Some(0)] => {
* // x: Option<usize>
* },
@@ -152,7 +152,7 @@ macro_rules! match_iter {
($arg:expr; $($args:tt)*) => {
{
let vec: Vec<_> = $arg.collect();
- $crate::match_vec!(vec, $($args)*)
+ $crate::match_vec!(vec; $($args)*)
}
};
}