summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMalo <57839069+MDLC01@users.noreply.github.com>2024-05-25 17:34:01 +0200
committerGitHub <noreply@github.com>2024-05-25 15:34:01 +0000
commit4929262610016280b455f3a79f4b150724a5acbe (patch)
treea23f91d6387ec9a69cacec94fb7552f91635165c /docs
parent1fff04f58240cc6d3501d5f3b797ae1bcc1a140c (diff)
Rephrase the sentence on variable scope in Scripting documentation (#4250)
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/scripting.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/reference/scripting.md b/docs/reference/scripting.md
index dab80760..f27b0501 100644
--- a/docs/reference/scripting.md
+++ b/docs/reference/scripting.md
@@ -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"