Skip to content

Commit

Permalink
meh
Browse files Browse the repository at this point in the history
  • Loading branch information
cecton committed Nov 5, 2023
1 parent 15804b6 commit 2a39bcd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@
//!
//! // In the user's source code:
//!
//! let name = IString::Static("age");
//! let age = IString::from(20.to_string());
//! // `age` is implicitly cloned to the 2 different inputs
//! let input1 = html_input!(<input name={"age"} value={age}>);
//! let input2 = html_input!(<input name={"age"} value={age}>);
//! // `name` and `age` are implicitly cloned to the 2 different inputs
//! let input1 = html_input!(<input name={name} value={age}>);
//! let input2 = html_input!(<input name={name} value={age}>);
//!
//! assert_eq!(input1.to_string(), r#"<input type="text" name="age" value="20">"#);
//! assert_eq!(input2.to_string(), r#"<input type="text" name="age" value="20">"#);
Expand Down

0 comments on commit 2a39bcd

Please sign in to comment.