summaryrefslogtreecommitdiff
path: root/tests/typ/graphics
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-05-03 16:59:13 +0200
committerLaurenz <laurmaedje@gmail.com>2022-05-04 00:14:31 +0200
commit507c5fc92563560426db0d86c0348880b0493467 (patch)
tree45116b62fb0fffe8e88d6c96ae1fcf11c73f8ee9 /tests/typ/graphics
parente18a896a93cae987aa30addd40e678bf0064fd31 (diff)
Text replacement show rules
Diffstat (limited to 'tests/typ/graphics')
-rw-r--r--tests/typ/graphics/shape-rect.typ12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/typ/graphics/shape-rect.typ b/tests/typ/graphics/shape-rect.typ
index a29550b5..5495da8c 100644
--- a/tests/typ/graphics/shape-rect.typ
+++ b/tests/typ/graphics/shape-rect.typ
@@ -41,16 +41,16 @@
---
// Outset padding.
+#set raw(lang: "rust")
#show node: raw as [
- #set text("IBM Plex Mono", 8pt)
- #h(.7em, weak: true)
- #rect(radius: 3pt, outset: (y: 3pt, x: 2.5pt), fill: rgb(239, 241, 243))[{node.text}]
- #h(.7em, weak: true)
+ #set text(8pt)
+ #h(5.6pt, weak: true)
+ #rect(radius: 3pt, outset: (y: 3pt, x: 2.5pt), fill: rgb(239, 241, 243), node)
+ #h(5.6pt, weak: true)
]
-Use the `*const ptr` pointer.
+Use the `*const T` pointer or the `&mut T` reference.
---
// Error: 15-38 unexpected key "cake"
#rect(radius: (left: 10pt, cake: 5pt))
-