Skip to content

Commit c7967e5

Browse files
authored
docs(html-to-string-macro): Hint regarding braced blocks (#38)
1 parent 8d11289 commit c7967e5

File tree

1 file changed

+3
-0
lines changed
  • examples/html-to-string-macro/src

1 file changed

+3
-0
lines changed

examples/html-to-string-macro/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ fn walk_nodes<'a>(nodes: &'a Vec<Node>, context: Option<NodeType>) -> (String, V
7979

8080
/// Converts HTML to `String`.
8181
///
82+
/// Values returned from brace blocks `{}` are expected to return something that
83+
/// implements `Display`.
84+
///
8285
/// See [syn-rsx docs](https://docs.rs/syn-rsx/) for supported tags and syntax.
8386
///
8487
/// # Example

0 commit comments

Comments
 (0)