Skip to content

Commit 91fceb2

Browse files
committed
Misc. typo fixes.
1 parent b8ae0a3 commit 91fceb2

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

procedural-masquerade/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
//! ## For users
138138
//!
139139
//! Users of `libfoo` don’t need to worry about any of these implementation details.
140-
//! They can use the `foo_stringify` macro as if it were a simle `macro_rules` macro:
140+
//! They can use the `foo_stringify` macro as if it were a simple `macro_rules` macro:
141141
//!
142142
//! ```rust
143143
//! #[macro_use] extern crate libfoo;
@@ -264,7 +264,7 @@ macro_rules! define_invoke_proc_macro {
264264
// because that is the only case where a type definition
265265
// can contain a (const) expression.
266266
//
267-
// `(0, "foo").0` evalutes to 0, with the `"foo"` part ignored.
267+
// `(0, "foo").0` evaluates to 0, with the `"foo"` part ignored.
268268
//
269269
// By the time the `#[proc_macro_derive]` function
270270
// implementing `#[derive($proc_macro_name)]` is called,

src/css-parsing-tests/stylesheet_bytes.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696

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

src/macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use std::mem::MaybeUninit;
1515
/// ```rust
1616
/// #[macro_use] extern crate cssparser;
1717
///
18-
/// # fn main() {} // Make doctest not wrap everythig in its own main
18+
/// # fn main() {} // Make doctest not wrap everything in its own main
1919
/// # fn dummy(function_name: &String) { let _ =
2020
/// match_ignore_ascii_case! { &function_name,
2121
/// "rgb" => parse_rgb(..),
@@ -138,7 +138,7 @@ macro_rules! _cssparser_internal_to_lowercase {
138138

139139
/// Implementation detail of match_ignore_ascii_case! and ascii_case_insensitive_phf_map! macros.
140140
///
141-
/// **This function is not part of the public API. It can change or be removed between any verisons.**
141+
/// **This function is not part of the public API. It can change or be removed between any versions.**
142142
///
143143
/// If `input` is larger than buffer, return `None`.
144144
/// Otherwise, return `input` ASCII-lowercased, using `buffer` as temporary space if necessary.

src/parser.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub enum BasicParseErrorKind<'i> {
5353
QualifiedRuleInvalid,
5454
}
5555

56-
/// The funamental parsing errors that can be triggered by built-in parsing routines.
56+
/// The fundamental parsing errors that can be triggered by built-in parsing routines.
5757
#[derive(Clone, Debug, PartialEq)]
5858
pub struct BasicParseError<'i> {
5959
/// Details of this error
@@ -644,7 +644,7 @@ impl<'i: 't, 't> Parser<'i, 't> {
644644
///
645645
/// Successful results are accumulated in a vector.
646646
///
647-
/// This method retuns `Err(())` the first time that a closure call does,
647+
/// This method returns `Err(())` the first time that a closure call does,
648648
/// or if a closure call leaves some input before the next comma or the end of the input.
649649
#[inline]
650650
pub fn parse_comma_separated<F, T, E>(

src/rules_and_declarations.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ where
316316
///
317317
/// This differs in that `<!--` and `-->` tokens
318318
/// should only be ignored at the stylesheet top-level.
319-
/// (This is to deal with legacy work arounds for `<style>` HTML element parsing.)
319+
/// (This is to deal with legacy workarounds for `<style>` HTML element parsing.)
320320
pub fn new_for_nested_rule(input: &'a mut Parser<'i, 't>, parser: P) -> Self {
321321
RuleListParser {
322322
input: input,

0 commit comments

Comments
 (0)