adding docs, updating Cargo.toml

This commit is contained in:
David Bittner
2019-04-26 22:12:39 -04:00
parent 7bab969b69
commit 29eb11a1e1
5 changed files with 31 additions and 7 deletions

View File

@@ -246,9 +246,11 @@ impl<'a> Iterator for ParserIterator<'a> {
}
}
pub fn iterate_on<'a>(bytes: &'a str) -> ParserIterator<'a> {
ParserIterator {
dat: bytes.as_bytes(),
done: false
impl<'a> ParserIterator<'a> {
pub fn new(string: &'a str) -> ParserIterator<'a> {
ParserIterator {
dat: string.as_bytes(),
done: false
}
}
}