Skip to content

Commit ccdc47d

Browse files
authored
Update setup.mdx
yaml formatting issue fixed
1 parent 0f2f6de commit ccdc47d

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

src/content/reference/es/p5/setup.mdx

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,18 @@ line: 82
1212
isConstructor: false
1313
itemtype: method
1414
alt: nothing displayed
15-
example: |-
16-
<div><code>
17-
let a = 0;
18-
function setup() {
19-
background(0);
20-
noStroke();
21-
fill(102);
22-
}
23-
function draw() {
24-
rect(a++ % width, 10, 2, 80);
25-
}
26-
</code></div>
27-
class: p5
28-
chainable: false
29-
---
30-
15+
example:
16+
- |-
17+
<div><code>
18+
let a = 0;
19+
function setup() {
20+
background(0);
21+
noStroke();
22+
fill(102);
23+
}
24+
function draw() {
25+
rect(a++ % width, 10, 2, 80);
26+
}
3127
</code></div>
3228
class: p5
3329
chainable: false

0 commit comments

Comments
 (0)