diff options
| author | Tijme <68817281+7ijme@users.noreply.github.com> | 2025-03-03 10:32:06 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2025-03-06 16:30:59 +0100 |
| commit | 9c4123457469d7771c76938493944fec54eb64fa (patch) | |
| tree | eacdbe974b61f55b6e6267ee13096cca8b7f2e2f | |
| parent | 59569cbf6172ae8f2159e794c2ee26d3d36713df (diff) | |
Fix docs example with type/string comparison (#5987)
| -rw-r--r-- | crates/typst-library/src/loading/xml.rs | 6 |
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) /// } /// } |
