Skip to content

Commit

Permalink
mut is not needed in these examples
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Nov 11, 2024
1 parent c8c5797 commit e92b99c
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 e92b99c

Please sign in to comment.