Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nit: fix minor typo in usage of it's vs its in the docs #1043

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading