Skip to content

Commit

Permalink
fix: resolve lint warning in doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Sep 14, 2023
1 parent 93cfea4 commit b41b6a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//! use std::collections::BTreeMap;
//! use handlebars::Handlebars;
//!
//! fn main() {
//! # fn main() {
//! // create the handlebars registry
//! let mut handlebars = Handlebars::new();
//!
Expand All @@ -26,7 +26,7 @@
//! let mut data = BTreeMap::new();
//! data.insert("world".to_string(), "世界!".to_string());
//! assert_eq!(handlebars.render("t1", &data).unwrap(), "hello 世界!");
//! }
//! # }
//! ```
//!
//! In this example, we created a template registry and registered a template named `t1`.
Expand Down

0 comments on commit b41b6a4

Please sign in to comment.