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

Correct typos in parser.rs #838

Merged
merged 1 commit into from
Mar 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

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