summaryrefslogtreecommitdiff
path: root/docs/reference
diff options
context:
space:
mode:
authorJie Wang <124119483+escwxyz@users.noreply.github.com>2025-01-06 20:58:36 +0800
committerGitHub <noreply@github.com>2025-01-06 12:58:36 +0000
commit39eeb116a47993e7c3ec756a975f41762dbb008b (patch)
tree2278fa559f97d959367859467c791c483e299829 /docs/reference
parenta2f685483a5d0ee23c299ce7631d738658d12d89 (diff)
Fix typos in scripting reference (#5660)
Diffstat (limited to 'docs/reference')
-rw-r--r--docs/reference/scripting.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/reference/scripting.md b/docs/reference/scripting.md
index 89508eee..6c7a7b33 100644
--- a/docs/reference/scripting.md
+++ b/docs/reference/scripting.md
@@ -120,7 +120,7 @@ You can use the underscore to discard elements in a destructuring pattern:
The y coordinate is #y.
```
-Destructuring also work in argument lists of functions ...
+Destructuring also works in argument lists of functions ...
```example
#let left = (2, 4, 5)
@@ -145,7 +145,7 @@ swap variables among other things.
## Conditionals
With a conditional, you can display or compute different things depending on
whether some condition is fulfilled. Typst supports `{if}`, `{else if}` and
-`{else}` expression. When the condition evaluates to `{true}`, the conditional
+`{else}` expressions. When the condition evaluates to `{true}`, the conditional
yields the value resulting from the if's body, otherwise yields the value
resulting from the else's body.
@@ -269,7 +269,7 @@ the following two equivalent ways:
The structure of a method call is `{value.method(..args)}` and its equivalent
full function call is `{type(value).method(value, ..args)}`. The documentation
-of each type lists it's scoped functions. You cannot currently define your own
+of each type lists its scoped functions. You cannot currently define your own
methods.
```example