Skip to content

Commit 9c81041

Browse files
jonathanKingstonbodil
authored andcommitted
Support expressions in text! macro
1 parent 1051565 commit 9c81041

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typed-html/src/dom.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ macro_rules! text {
139139
($t:expr) => {
140140
Box::new($crate::dom::TextNode::new($t))
141141
};
142-
($format:tt, $($tail:tt),*) => {
142+
($format:tt, $($tail:expr),*) => {
143143
Box::new($crate::dom::TextNode::new(format!($format, $($tail),*)))
144144
};
145145
}

0 commit comments

Comments
 (0)