Skip to content

Commit 2eb7c1e

Browse files
authored
Use {plus} predefined attribute to escape increment operator
Previously, the increment operator in the syntax section was being treated as markup.
1 parent 70a96cc commit 2eb7c1e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Language/Structure/Compound Operators/increment.adoc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@ Increments the value of a variable by 1.
2424

2525
[float]
2626
=== Syntax
27-
[source,arduino]
28-
----
29-
x++; // increment x by one and returns the old value of x
30-
++x; // increment x by one and returns the new value of x
31-
----
27+
`x{plus}{plus}; // increment x by one and returns the old value of x` +
28+
`{plus}{plus}x; // increment x by one and returns the new value of x`
3229

3330

3431
[float]

0 commit comments

Comments
 (0)