From 91fceb2b8658780792a8f4e5b063b90fcf6dae03 Mon Sep 17 00:00:00 2001 From: FelixRilling Date: Sat, 25 Sep 2021 17:13:34 +0200 Subject: [PATCH] Misc. typo fixes. --- procedural-masquerade/lib.rs | 4 ++-- src/css-parsing-tests/stylesheet_bytes.json | 2 +- src/macros.rs | 4 ++-- src/parser.rs | 4 ++-- src/rules_and_declarations.rs | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/procedural-masquerade/lib.rs b/procedural-masquerade/lib.rs index 53394044..85b61c6e 100644 --- a/procedural-masquerade/lib.rs +++ b/procedural-masquerade/lib.rs @@ -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; @@ -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, diff --git a/src/css-parsing-tests/stylesheet_bytes.json b/src/css-parsing-tests/stylesheet_bytes.json index d8b14a1b..e990048e 100644 --- a/src/css-parsing-tests/stylesheet_bytes.json +++ b/src/css-parsing-tests/stylesheet_bytes.json @@ -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"], diff --git a/src/macros.rs b/src/macros.rs index 234920d8..74f70759 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -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(..), @@ -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. diff --git a/src/parser.rs b/src/parser.rs index 8b2a231b..f04628db 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -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 @@ -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( diff --git a/src/rules_and_declarations.rs b/src/rules_and_declarations.rs index cfe25f85..3224bb96 100644 --- a/src/rules_and_declarations.rs +++ b/src/rules_and_declarations.rs @@ -316,7 +316,7 @@ where /// /// This differs in that `` tokens /// should only be ignored at the stylesheet top-level. - /// (This is to deal with legacy work arounds for `` HTML element parsing.) + /// (This is to deal with legacy workarounds for `` HTML element parsing.) pub fn new_for_nested_rule(input: &'a mut Parser<'i, 't>, parser: P) -> Self { RuleListParser { input: input,