diff options
| author | Martin Haug <mhaug@live.de> | 2022-05-03 11:40:27 +0200 |
|---|---|---|
| committer | Martin Haug <mhaug@live.de> | 2022-05-03 12:59:41 +0200 |
| commit | 6a8a0ec6ec8bb8cf346ee0dd2c45ddcfbee7fbe6 (patch) | |
| tree | 0d8716d2fa0c01a2319bb84be0283253bc6490fe /tests/typ/graphics | |
| parent | 33213abe7dfcb8d8065faadd2f5b72ec4b718af1 (diff) | |
Code Review: Heap is Stack. Unsafe is Good.
Spaghetti Code is Style.
Diffstat (limited to 'tests/typ/graphics')
| -rw-r--r-- | tests/typ/graphics/shape-rect.typ | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/typ/graphics/shape-rect.typ b/tests/typ/graphics/shape-rect.typ index 3d157675..a29550b5 100644 --- a/tests/typ/graphics/shape-rect.typ +++ b/tests/typ/graphics/shape-rect.typ @@ -35,20 +35,20 @@ // Different strokes. [ - #set rect(stroke: (right: red,)) + #set rect(stroke: (right: red)) #rect(width: 100%, fill: lime, stroke: (x: 5pt, y: 1pt)) ] --- // Outset padding. -#let inline-code(body) = [ +#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), body) + #rect(radius: 3pt, outset: (y: 3pt, x: 2.5pt), fill: rgb(239, 241, 243))[{node.text}] #h(.7em, weak: true) ] -Use the #inline-code[\*const ptr] pointer. +Use the `*const ptr` pointer. --- // Error: 15-38 unexpected key "cake" |
