Fix typos in scripting reference (#5660)

This commit is contained in:
Jie Wang 2025-01-06 20:58:36 +08:00 committed by GitHub
parent a2f685483a
commit 39eeb116a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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