summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 2878185..83ead73 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -756,8 +756,8 @@ where
it: InputIter<I>,
) -> ParserResult<I, Self::Output, OM, EM> {
match self.parser.check(it.clone()) {
- Ok(_) => Ok((it, OM::bind(|| ()))),
- Err(rest) => Err(EM::bind(|| rest)),
+ Ok(_) => Err(EM::bind(|| it)),
+ Err(_) => Ok((it, OM::bind(|| ()))),
}
}
}