Skip to content

Commit

Permalink
Merge pull request #566 from szabgab/remove-mut-from-example
Browse files Browse the repository at this point in the history
mut is not needed in these examples
  • Loading branch information
epage authored Nov 11, 2024
2 parents c8c5797 + e92b99c commit 96603b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let template = liquid::ParserBuilder::with_stdlib()
.build().unwrap()
.parse("Liquid! {{num | minus: 2}}").unwrap();

let mut globals = liquid::object!({
let globals = liquid::object!({
"num": 4f64
});

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//! .build().unwrap()
//! .parse("Liquid! {{num | minus: 2}}").unwrap();
//!
//! let mut globals = liquid::object!({
//! let globals = liquid::object!({
//! "num": 4f64
//! });
//!
Expand Down
2 changes: 1 addition & 1 deletion src/partials.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
//! // Compile and render the main template, which uses the "common" partial.
//! let parser = ParserBuilder::with_stdlib().partials(partials).build().unwrap();
//! let rendered = {
//! let mut globals = liquid::object!({ "num": 42 });
//! let globals = liquid::object!({ "num": 42 });
//! parser
//! .parse("Liquid! {% render \"common\", i: num %}").unwrap()
//! .render(&globals).unwrap()
Expand Down

0 comments on commit 96603b9

Please sign in to comment.