Skip to content

Misc. typo fixes. #288

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

Merged
merged 1 commit into from
Nov 21, 2021
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 procedural-masquerade/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
//! ## For users
//!
//! Users of `libfoo` don’t need to worry about any of these implementation details.
//! They can use the `foo_stringify` macro as if it were a simle `macro_rules` macro:
//! They can use the `foo_stringify` macro as if it were a simple `macro_rules` macro:
//!
//! ```rust
//! #[macro_use] extern crate libfoo;
Expand Down Expand Up @@ -264,7 +264,7 @@ macro_rules! define_invoke_proc_macro {
// because that is the only case where a type definition
// can contain a (const) expression.
//
// `(0, "foo").0` evalutes to 0, with the `"foo"` part ignored.
// `(0, "foo").0` evaluates to 0, with the `"foo"` part ignored.
//
// By the time the `#[proc_macro_derive]` function
// implementing `#[derive($proc_macro_name)]` is called,
Expand Down
2 changes: 1 addition & 1 deletion src/css-parsing-tests/stylesheet_bytes.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@

{"css_bytes": "@charset \"ISO-8859-5\"; @\u00E9",
"protocol_encoding": "kamoulox",
"comment": "Unknow protocol encoding falls back to @charset"},
"comment": "Unknown protocol encoding falls back to @charset"},
[[["at-rule", "щ", [], null]],
"iso-8859-5"],

Expand Down
4 changes: 2 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use std::mem::MaybeUninit;
/// ```rust
/// #[macro_use] extern crate cssparser;
///
/// # fn main() {} // Make doctest not wrap everythig in its own main
/// # fn main() {} // Make doctest not wrap everything in its own main
/// # fn dummy(function_name: &String) { let _ =
/// match_ignore_ascii_case! { &function_name,
/// "rgb" => parse_rgb(..),
Expand Down Expand Up @@ -138,7 +138,7 @@ macro_rules! _cssparser_internal_to_lowercase {

/// Implementation detail of match_ignore_ascii_case! and ascii_case_insensitive_phf_map! macros.
///
/// **This function is not part of the public API. It can change or be removed between any verisons.**
/// **This function is not part of the public API. It can change or be removed between any versions.**
///
/// If `input` is larger than buffer, return `None`.
/// Otherwise, return `input` ASCII-lowercased, using `buffer` as temporary space if necessary.
Expand Down
4 changes: 2 additions & 2 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub enum BasicParseErrorKind<'i> {
QualifiedRuleInvalid,
}

/// The funamental parsing errors that can be triggered by built-in parsing routines.
/// The fundamental parsing errors that can be triggered by built-in parsing routines.
#[derive(Clone, Debug, PartialEq)]
pub struct BasicParseError<'i> {
/// Details of this error
Expand Down Expand Up @@ -644,7 +644,7 @@ impl<'i: 't, 't> Parser<'i, 't> {
///
/// Successful results are accumulated in a vector.
///
/// This method retuns `Err(())` the first time that a closure call does,
/// This method returns `Err(())` the first time that a closure call does,
/// or if a closure call leaves some input before the next comma or the end of the input.
#[inline]
pub fn parse_comma_separated<F, T, E>(
Expand Down
2 changes: 1 addition & 1 deletion src/rules_and_declarations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ where
///
/// This differs in that `<!--` and `-->` tokens
/// should only be ignored at the stylesheet top-level.
/// (This is to deal with legacy work arounds for `<style>` HTML element parsing.)
/// (This is to deal with legacy workarounds for `<style>` HTML element parsing.)
pub fn new_for_nested_rule(input: &'a mut Parser<'i, 't>, parser: P) -> Self {
RuleListParser {
input: input,
Expand Down