diff --git a/README.md b/README.md index 7dcd965..4f9c577 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ let mut doc: DOMTree = html!(

)) }

- "Every company should be a developer experience company" + "Every company should be a developer experience company."

@@ -95,14 +95,14 @@ conversion will panic at runtime if the string is invalid. ### Example ```rust -let classList: SpacedSet = ["foo", "bar", "baz"].into(); +let classList: SpacedSet = ["foo", "bar", "baz"].try_into()?; html!(
// parses a string literal
// uses From<[&str, &str, &str]>
// uses a variable in scope
) @@ -151,7 +151,7 @@ assert_eq!("

Hello Axo

", doc_str); ### Render to a virtual DOM The DOM tree structure also implements a method called `vnode()`, which renders -the tree to a tree of [`Node`][Node]s, which is a mirror of the generated tree +the tree to a tree of [`VNode`][VNode]s, which is a mirror of the generated tree with every attribute value rendered into `String`s. You can walk this virtual DOM tree and pass it on to your favourite virtual DOM system. @@ -168,7 +168,7 @@ Copyright 2018 Bodil Stokke, 2022 Axo Developer Co. [Display]: https://doc.rust-lang.org/std/fmt/trait.Display.html [String]: https://doc.rust-lang.org/std/string/struct.String.html [to_string]: https://doc.rust-lang.org/std/string/trait.ToString.html#tymethod.to_string -[Node]: https://docs.rs/axohtml/latest/axohtml/dom/trait.Node.html +[VNode]: https://docs.rs/axohtml/latest/axohtml/dom/enum.VNode.html [FromStr]: https://doc.rust-lang.org/std/str/trait.FromStr.html [SpacedSet]: https://docs.rs/axohtml/latest/axohtml/types/struct.SpacedSet.html [IntoIterator]: https://doc.rust-lang.org/std/iter/trait.IntoIterator.html