Merge pull request #68 from Kijewski/pr-typos

Run `typos` to fix typos
This commit is contained in:
Guillaume Gomez 2024-07-12 10:49:01 +02:00 committed by GitHub
commit 70b1983a03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@ pub(crate) struct Config {
pub(crate) default_syntax: &'static str, pub(crate) default_syntax: &'static str,
pub(crate) escapers: Vec<(Vec<Cow<'static, str>>, Cow<'static, str>)>, pub(crate) escapers: Vec<(Vec<Cow<'static, str>>, Cow<'static, str>)>,
pub(crate) whitespace: WhitespaceHandling, 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, _key: OwnedConfigKey,
} }

View File

@ -753,7 +753,7 @@ fn filter<'a>(
))(j) ))(j)
} else { } else {
Err(nom::Err::Failure(ErrorContext::new( 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", the binary OR operator is called `bitor` in rinja",
i, i,
))) )))

View File

@ -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) = 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 the binary OR operator is called `bitor` in rinja
failed to parse template source at row 1, column 4 near: failed to parse template source at row 1, column 4 near:
" | b }}" " | b }}"

View File

@ -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 the binary OR operator is called `bitor` in rinja
failed to parse template source at row 1, column 3 near: failed to parse template source at row 1, column 3 near:
" |lower}}" " |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) = 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 the binary OR operator is called `bitor` in rinja
failed to parse template source at row 1, column 3 near: failed to parse template source at row 1, column 3 near:
" | lower}}" " | lower}}"