From 0f8219b392e96d3cf7d784ee5d474274169d9918 Mon Sep 17 00:00:00 2001 From: Marmare314 <49279081+Marmare314@users.noreply.github.com> Date: Thu, 6 Apr 2023 15:26:09 +0200 Subject: Unpacking syntax (#532) Closes #341 --- library/src/compute/data.rs | 2 +- library/src/layout/terms.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'library/src') 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", -- cgit v1.2.3