summaryrefslogtreecommitdiff
path: root/tests/typ/code
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/code')
-rw-r--r--tests/typ/code/let.typ2
-rw-r--r--tests/typ/code/target.typ2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/typ/code/let.typ b/tests/typ/code/let.typ
index cd7531b7..7fd6e0da 100644
--- a/tests/typ/code/let.typ
+++ b/tests/typ/code/let.typ
@@ -11,7 +11,7 @@
// Syntax sugar for function definitions.
#let fill = conifer
-#let rect(body) = rect(width: 2cm, fill: fill, pad(5pt, body))
+#let rect(body) = rect(width: 2cm, fill: fill, padding: 5pt, body)
#rect[Hi!]
---
diff --git a/tests/typ/code/target.typ b/tests/typ/code/target.typ
index 12a5ff8b..73516817 100644
--- a/tests/typ/code/target.typ
+++ b/tests/typ/code/target.typ
@@ -7,6 +7,6 @@
#let d = 3
#let value = [hi]
#let item(a, b) = a + b
-#let fn(body) = rect(fill: conifer, pad(5pt, body))
+#let fn = rect with (fill: conifer, padding: 5pt)
Some _includable_ text.