summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/typst-library/src/loading/xml.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/typst-library/src/loading/xml.rs b/crates/typst-library/src/loading/xml.rs
index daccd02f..e76c4e9c 100644
--- a/crates/typst-library/src/loading/xml.rs
+++ b/crates/typst-library/src/loading/xml.rs
@@ -34,14 +34,14 @@ use crate::loading::{DataSource, Load, Readable};
/// let author = find-child(elem, "author")
/// let pars = find-child(elem, "content")
///
-/// heading(title.children.first())
+/// [= #title.children.first()]
/// text(10pt, weight: "medium")[
/// Published by
/// #author.children.first()
/// ]
///
/// for p in pars.children {
-/// if (type(p) == "dictionary") {
+/// if type(p) == dictionary {
/// parbreak()
/// p.children.first()
/// }
@@ -50,7 +50,7 @@ use crate::loading::{DataSource, Load, Readable};
///
/// #let data = xml("example.xml")
/// #for elem in data.first().children {
-/// if (type(elem) == "dictionary") {
+/// if type(elem) == dictionary {
/// article(elem)
/// }
/// }