diff options
| author | Tijme <68817281+7ijme@users.noreply.github.com> | 2025-03-03 10:32:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-03 09:32:06 +0000 |
| commit | 66679920b25a80bf106148b59642fbae166e0d7a (patch) | |
| tree | 7033322f964ca58779bf8283e5b2b91174b36655 /crates/typst-library/src/loading | |
| parent | cfb3b1a2709107f0f06f89ea25cabc939cec15e5 (diff) | |
Fix docs example with type/string comparison (#5987)
Diffstat (limited to 'crates/typst-library/src/loading')
| -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) /// } /// } |
