Skip to content

Commit

Permalink
more double space
Browse files Browse the repository at this point in the history
  • Loading branch information
vwkd committed Oct 25, 2023
1 parent b3f1cb9 commit 26a70b5
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ MSRV was raised to 1.60 (#158, #160, #167)
- `Parser::with_recognized` (#40)
- `Parser::context` (#40)
- Allow more containers to be used with `winnow::multi` parsers (#127)
- Allow `u8` and `char`, ranges of `u8` and `char`, functions, and tuples of the prior wherever `ContainsToken` is accepted (#44, #105)
- Allow `u8` and `char`, ranges of `u8` and `char`, functions, and tuples of the prior wherever `ContainsToken` is accepted (#44, #105)
- Generalize `take_while`, `take_till` with `ContainsToken` trait (#44, #105)
- Add `character::is_*` functions to `AsChar` that were missing (#2)
- Implement `Stream` for `(I, usize)`, allowing more combinators to work with bit-streams (#153)
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ appreciate any level you're willing to do.

## Feature Requests

Need some new functionality to help? You can let us know by opening an
Need some new functionality to help? You can let us know by opening an
[issue][new issue]. It's helpful to look through [all issues][all issues] in
case its already being talked about.

Expand All @@ -22,7 +22,7 @@ it is probably best to post on the issue how you are thinking of resolving the
issue so you can get feedback early in the process. We want you to be
successful and it can be discouraging to find out a lot of re-work is needed.

Already have an idea? It might be good to first [create an issue][new issue]
Already have an idea? It might be good to first [create an issue][new issue]
to propose it so we can make sure we are aligned and lower the risk of having
to re-work some of it and the discouragement that goes along with that.

Expand All @@ -44,7 +44,7 @@ When you first post a PR, we request that the the commit history get cleaned
up. We recommend avoiding this during the PR to make it easier to review how
feedback was handled. Once the commit is ready, we'll ask you to clean up the
commit history. Once you let us know this is done, we can move forward with
merging! If you are uncomfortable with these parts of git, let us know and we
merging! If you are uncomfortable with these parts of git, let us know and we
can help.

For commit messages, we use [Conventional](https://www.conventionalcommits.org)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ For more details, see:
# Contributors

winnow is the fruit of the work of many contributors over the years, many
thanks for your help! In particular, thanks to [Geal](https://github.com/Geal)
thanks for your help! In particular, thanks to [Geal](https://github.com/Geal)
for the original [`nom` crate](https://crates.io/crates/nom).

<a href="https://github.com/winnow-rs/winnow/graphs/contributors">
Expand Down
2 changes: 1 addition & 1 deletion src/_tutorial/chapter_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! ```text
//! ┌─► Ok(what matched the parser)
//! ┌─────────┐ │
//! my input───►│my parser├──►either──┤
//! my input───►│my parser├──►either──┤
//! └─────────┘ └─► Err(...)
//! ```
//!
Expand Down
2 changes: 1 addition & 1 deletion src/binary/bits/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ where
/// }
///
/// fn parser(input: (Stream<'_>, usize), count: usize)-> IResult<(Stream<'_>, usize), u8> {
/// take(count).parse_peek(input)
/// take(count).parse_peek(input)
/// }
///
/// // Consumes 0 bits, returns 0
Expand Down
8 changes: 4 additions & 4 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ pub trait Parser<I, O, E> {
/// use winnow::ascii::alpha1;
/// # fn main() {
///
/// fn parser1<'s>(i: &mut &'s str) -> PResult<&'s str, InputError<&'s str>> {
/// alpha1(i)
/// }
/// fn parser1<'s>(i: &mut &'s str) -> PResult<&'s str, InputError<&'s str>> {
/// alpha1(i)
/// }
///
/// let mut parser2 = parser1.output_into();
/// let mut parser2 = parser1.output_into();
///
/// // the parser converts the &str output of the child parser into a Vec<u8>
/// let bytes: IResult<&str, Vec<u8>> = parser2.parse_peek("abcd");
Expand Down
4 changes: 2 additions & 2 deletions src/token/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ where
/// It will return an `ErrMode::Backtrack(InputError::new(_, ErrorKind::Slice))` if the pattern wasn't met or is out
/// of range (m <= len <= n).
///
/// *Partial version* will return a `ErrMode::Incomplete(Needed::new(1))` if the pattern reaches the end of the input or is too short.
/// *Partial version* will return a `ErrMode::Incomplete(Needed::new(1))` if the pattern reaches the end of the input or is too short.
///
/// To recognize a series of tokens, use [`repeat`][crate::combinator::repeat] to [`Accumulate`][crate::stream::Accumulate] into a `()` and then [`Parser::recognize`].
///
Expand Down Expand Up @@ -1025,7 +1025,7 @@ where
/// assert_eq!(until_eof(Partial::new("hello, world")), Err(ErrMode::Incomplete(Needed::Unknown)));
/// assert_eq!(until_eof(Partial::new("hello, worldeo")), Err(ErrMode::Incomplete(Needed::Unknown)));
/// assert_eq!(until_eof(Partial::new("1eof2eof")), Ok((Partial::new("eof2eof"), "1")));
/// assert_eq!(until_eof(Partial::new("eof")), Err(ErrMode::Backtrack(InputError::new(Partial::new("eof"), ErrorKind::Slice))));
/// assert_eq!(until_eof(Partial::new("eof")), Err(ErrMode::Backtrack(InputError::new(Partial::new("eof"), ErrorKind::Slice))));
/// ```
#[inline(always)]
pub fn take_until1<T, I, Error: ParserError<I>>(
Expand Down

0 comments on commit 26a70b5

Please sign in to comment.