summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-02-12 22:39:20 +0100
committerLaurenz <laurmaedje@gmail.com>2023-02-12 22:39:20 +0100
commit10b17a04bc27a4b38a0534446d29151d4f6303b3 (patch)
treeb2d27d662822a969c6cb3718a1cc05908f8731a7 /docs
parentfd90736fb6239409210f845a8589ba3d6b849ef3 (diff)
Fix docs
Diffstat (limited to 'docs')
-rw-r--r--docs/src/reference/scripting.md2
-rw-r--r--docs/src/reference/types.md10
2 files changed, 6 insertions, 6 deletions
diff --git a/docs/src/reference/scripting.md b/docs/src/reference/scripting.md
index 6928d22a..68e73c62 100644
--- a/docs/src/reference/scripting.md
+++ b/docs/src/reference/scripting.md
@@ -17,7 +17,7 @@ be interpreted as text, the expression can forcibly be ended with a semicolon
(`;`).
```example
-#rect[Hello] \
+#emph[Hello] \
#emoji.face \
#"hello".len()
```
diff --git a/docs/src/reference/types.md b/docs/src/reference/types.md
index 744e1abd..11580c8b 100644
--- a/docs/src/reference/types.md
+++ b/docs/src/reference/types.md
@@ -76,8 +76,8 @@ Typst supports the following length units:
## Example
```example
-#rect(width: 20pt) \
-#rect(width: 2em) \
+#rect(width: 20pt)
+#rect(width: 2em)
#rect(width: 1in)
```
@@ -797,10 +797,10 @@ arguments, arrays and dictionaries into a function call with the spread operator
## Example
```example
#let format(title, ..authors) = [
- *{title}* \
- _Written by {authors
+ *#title* \
+ _Written by #(authors
.pos()
- .join(", ", last: " and ")}._
+ .join(", ", last: " and "));._
]
#format("ArtosFlow", "Jane", "Joe")