Skip to content

Commit

Permalink
Rephrase the sentence on variable scope in Scripting documentation (t…
Browse files Browse the repository at this point in the history
  • Loading branch information
MDLC01 committed May 25, 2024
1 parent 1fff04f commit 4929262
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/reference/scripting.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ As already demonstrated above, variables can be defined with `{let}` bindings.
The variable is assigned the value of the expression that follows the `=` sign.
The assignment of a value is optional, if no value is assigned, the variable
will be initialized as `{none}`. The `{let}` keyword can also be used to create
a [custom named function]($function/#defining-functions). Let bindings can be
accessed for the rest of the containing block or document.
a [custom named function]($function/#defining-functions). Variables can be
accessed for the rest of the containing block (or the rest of the file if there
is no containing block).

```example
#let name = "Typst"
Expand Down

0 comments on commit 4929262

Please sign in to comment.