diff options
| author | Marmare314 <49279081+Marmare314@users.noreply.github.com> | 2023-04-06 15:26:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-06 15:26:09 +0200 |
| commit | 0f8219b392e96d3cf7d784ee5d474274169d9918 (patch) | |
| tree | 60ce53bb076b61b09184f4f1aefa2fa63ebb3ed2 /library | |
| parent | a73149767c82509b77ccf6996ab0b1125cc9c249 (diff) | |
Unpacking syntax (#532)
Closes #341
Diffstat (limited to 'library')
| -rw-r--r-- | library/src/compute/data.rs | 2 | ||||
| -rw-r--r-- | library/src/layout/terms.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/library/src/compute/data.rs b/library/src/compute/data.rs index 1e0edebb..3b30efac 100644 --- a/library/src/compute/data.rs +++ b/library/src/compute/data.rs @@ -232,7 +232,7 @@ fn format_json_error(error: serde_json::Error) -> String { /// ## Example /// ```example /// #let bookshelf(contents) = { -/// for author, works in contents { +/// for (author, works) in contents { /// author /// for work in works [ /// - #work.title (#work.published) diff --git a/library/src/layout/terms.rs b/library/src/layout/terms.rs index e51280f9..45ba82b5 100644 --- a/library/src/layout/terms.rs +++ b/library/src/layout/terms.rs @@ -81,7 +81,7 @@ pub struct TermsElem { /// collected into term lists, even through constructs like for loops. /// /// ```example - /// #for year, product in ( + /// #for (year, product) in ( /// "1978": "TeX", /// "1984": "LaTeX", /// "2019": "Typst", |
