Skip to content

Commit

Permalink
Merge pull request #196 from Kijewski/pr-upper
Browse files Browse the repository at this point in the history
 filters: minor fixups
  • Loading branch information
GuillaumeGomez authored Oct 8, 2024
2 parents 04f9251 + 3e9925b commit 1535f6d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions rinja/src/filters/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ pub fn lower(s: impl fmt::Display) -> Result<String, fmt::Error> {
lower(try_to_string(s)?)
}

/// Alias for the `lower()` filter
/// Converts to lowercase
/// Converts to lowercase, alias for the `|lower` filter
///
/// ```
/// # #[cfg(feature = "code-in-doc")] {
Expand Down Expand Up @@ -265,14 +264,13 @@ pub fn upper(s: impl fmt::Display) -> Result<String, fmt::Error> {
upper(try_to_string(s)?)
}

/// Alias for the `upper()` filter
/// Converts to uppercase
/// Converts to uppercase, alias for the `|upper` filter
///
/// ```
/// # #[cfg(feature = "code-in-doc")] {
/// # use rinja::Template;
/// /// ```jinja
/// /// <div>{{ word|upper }}</div>
/// /// <div>{{ word|uppercase }}</div>
/// /// ```
/// #[derive(Template)]
/// #[template(ext = "html", in_doc = true)]
Expand Down

0 comments on commit 1535f6d

Please sign in to comment.