diff --git a/rinja_derive/src/config.rs b/rinja_derive/src/config.rs index 91525636..4272495d 100644 --- a/rinja_derive/src/config.rs +++ b/rinja_derive/src/config.rs @@ -21,7 +21,7 @@ pub(crate) struct Config { pub(crate) default_syntax: &'static str, pub(crate) escapers: Vec<(Vec>, Cow<'static, str>)>, pub(crate) whitespace: WhitespaceHandling, - // `Config` is self referencial and `_key` owns it data, so it must come last + // `Config` is self referential and `_key` owns it data, so it must come last _key: OwnedConfigKey, } diff --git a/rinja_parser/src/lib.rs b/rinja_parser/src/lib.rs index 2999d0ee..3ce6fbff 100644 --- a/rinja_parser/src/lib.rs +++ b/rinja_parser/src/lib.rs @@ -753,7 +753,7 @@ fn filter<'a>( ))(j) } else { Err(nom::Err::Failure(ErrorContext::new( - "the filter operator `|` must not be preceeded by any whitespace characters\n\ + "the filter operator `|` must not be preceded by any whitespace characters\n\ the binary OR operator is called `bitor` in rinja", i, ))) diff --git a/testing/tests/ui/iso646.stderr b/testing/tests/ui/iso646.stderr index 9c400c66..9484a2ff 100644 --- a/testing/tests/ui/iso646.stderr +++ b/testing/tests/ui/iso646.stderr @@ -8,7 +8,7 @@ error: the binary AND operator is called `bitand` in rinja | = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info) -error: the filter operator `|` must not be preceeded by any whitespace characters +error: the filter operator `|` must not be preceded by any whitespace characters the binary OR operator is called `bitor` in rinja failed to parse template source at row 1, column 4 near: " | b }}" diff --git a/testing/tests/ui/space-pipe.stderr b/testing/tests/ui/space-pipe.stderr index c5fa556d..4f273d38 100644 --- a/testing/tests/ui/space-pipe.stderr +++ b/testing/tests/ui/space-pipe.stderr @@ -1,4 +1,4 @@ -error: the filter operator `|` must not be preceeded by any whitespace characters +error: the filter operator `|` must not be preceded by any whitespace characters the binary OR operator is called `bitor` in rinja failed to parse template source at row 1, column 3 near: " |lower}}" @@ -9,7 +9,7 @@ error: the filter operator `|` must not be preceeded by any whitespace character | = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info) -error: the filter operator `|` must not be preceeded by any whitespace characters +error: the filter operator `|` must not be preceded by any whitespace characters the binary OR operator is called `bitor` in rinja failed to parse template source at row 1, column 3 near: " | lower}}"