diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-02-12 22:39:20 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-02-12 22:39:20 +0100 |
| commit | 10b17a04bc27a4b38a0534446d29151d4f6303b3 (patch) | |
| tree | b2d27d662822a969c6cb3718a1cc05908f8731a7 /library/src/compute | |
| parent | fd90736fb6239409210f845a8589ba3d6b849ef3 (diff) | |
Fix docs
Diffstat (limited to 'library/src/compute')
| -rw-r--r-- | library/src/compute/construct.rs | 2 | ||||
| -rw-r--r-- | library/src/compute/data.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/library/src/compute/construct.rs b/library/src/compute/construct.rs index 2d450d5d..f540d828 100644 --- a/library/src/compute/construct.rs +++ b/library/src/compute/construct.rs @@ -90,7 +90,7 @@ castable! { /// ## Example /// ```example /// #for x in range(250, step: 50) { -/// square(fill: luma(x)) +/// box(square(fill: luma(x))) /// } /// ``` /// diff --git a/library/src/compute/data.rs b/library/src/compute/data.rs index 305c6611..5c0d4e64 100644 --- a/library/src/compute/data.rs +++ b/library/src/compute/data.rs @@ -151,7 +151,7 @@ fn format_csv_error(error: csv::Error) -> String { /// ## Example /// ```example /// #let forecast(day) = block[ -/// #square( +/// #box(square( /// width: 2cm, /// inset: 8pt, /// fill: if day.weather == "sunny" { @@ -163,7 +163,7 @@ fn format_csv_error(error: csv::Error) -> String { /// bottom + right, /// strong(day.weather), /// ), -/// ) +/// )) /// #h(6pt) /// #set text(22pt, baseline: -8pt) /// #day.temperature °#day.unit |
