diff --git a/README.md b/README.md index 12192102c..b377ee129 100644 --- a/README.md +++ b/README.md @@ -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 }); diff --git a/src/lib.rs b/src/lib.rs index 710a0449a..0164a16da 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,7 +12,7 @@ //! .build().unwrap() //! .parse("Liquid! {{num | minus: 2}}").unwrap(); //! -//! let mut globals = liquid::object!({ +//! let globals = liquid::object!({ //! "num": 4f64 //! }); //! diff --git a/src/partials.rs b/src/partials.rs index 8b40a37a5..228676271 100644 --- a/src/partials.rs +++ b/src/partials.rs @@ -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()