Skip to content

Commit

Permalink
nit: fix minor typo in usage of it's vs its in the docs (#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlopes authored Sep 27, 2024
1 parent 0a1533d commit 1d029d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
//! | `e?` | optionally matches `e` |
//! | `&e` | matches `e` without making progress |
//! | `!e` | matches if `e` doesn't match without making progress |
//! | `PUSH(e)` | matches `e` and pushes it's captured string down the stack |
//! | `PUSH(e)` | matches `e` and pushes its captured string down the stack |
//!
//! where `e`, `e1`, and `e2` are expressions.
//!
Expand All @@ -191,7 +191,7 @@
//! // input: ab_bb_b
//!
//! identifier = @{ "a" ~ ("b"|"_")* ~ "b" }
//! // matches: a b_bb_b nothing -> error!
//! // matches: a b_bb_b nothing -> error!
//!
//! identifier = @{ "a" ~ ("_"* ~ "b")* }
//! // matches: a b, _bb, _b in three repetitions
Expand Down
4 changes: 2 additions & 2 deletions pest/src/parser_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ pub struct ParserState<'i, R: RuleType> {
position: Position<'i>,
/// Queue representing rules partially (`QueueableToken::Start`) and
/// totally (`QueueableToken::End`) parsed. When entering rule we put it in the queue in a state
/// of `Start` and after all it's sublogic (subrules or strings) are parsed, we change it to
/// of `Start` and after all its sublogic (subrules or strings) are parsed, we change it to
/// `End` state.
queue: Vec<QueueableToken<'i, R>>,
/// Status set in case specific lookahead logic is used in grammar.
Expand Down Expand Up @@ -1359,7 +1359,7 @@ impl<'i, R: RuleType> ParserState<'i, R> {
F: FnOnce(Box<Self>) -> ParseResult<Box<Self>>,
{
self = self.inc_call_check_limit()?;
// In case child parsing call is another `atomic` it will have it's own atomicity status.
// In case child parsing call is another `atomic` it will have its own atomicity status.
let initial_atomicity = self.atomicity;
// In case child atomicity is the same as we've demanded, we shouldn't do nothing.
// E.g. we have the following rules:
Expand Down

0 comments on commit 1d029d9

Please sign in to comment.