Skip to content

Commit

Permalink
Correct typos in parser.rs (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixonmars committed Mar 18, 2023
1 parent a8a8e65 commit eb67d48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ macro_rules! return_ok_if_some {
}

#[cfg(feature = "std")]
/// Implemenation [`RecursionCounter`] if std is available
/// Implementation [`RecursionCounter`] if std is available
mod recursion {
use core::sync::atomic::{AtomicUsize, Ordering};
use std::rc::Rc;
Expand Down Expand Up @@ -121,7 +121,7 @@ mod recursion {

#[cfg(not(feature = "std"))]
mod recursion {
/// Implemenation [`RecursionCounter`] if std is NOT available (and does not
/// Implementation [`RecursionCounter`] if std is NOT available (and does not
/// guard against stack overflow).
///
/// Has the same API as the std RecursionCounter implementation
Expand Down Expand Up @@ -209,7 +209,7 @@ pub struct Parser<'a> {
/// Additional options that allow you to mix & match behavior otherwise
/// constrained to certain dialects (e.g. trailing commas)
options: ParserOptions,
/// ensure the stack does not overflow by limiting recusion depth
/// ensure the stack does not overflow by limiting recursion depth
recursion_counter: RecursionCounter,
}

Expand Down Expand Up @@ -360,7 +360,7 @@ impl<'a> Parser<'a> {
Ok(stmts)
}

/// Convience method to parse a string with one or more SQL
/// Convenience method to parse a string with one or more SQL
/// statements into produce an Abstract Syntax Tree (AST).
///
/// Example
Expand Down

0 comments on commit eb67d48

Please sign in to comment.