Skip to content

Commit ee6b95b

Browse files
author
Akshay Sharma
committed
Update Warning in max()
update Warning acc to arduino/Arduino#2602
1 parent 3269692 commit ee6b95b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Language/Functions/Math/max.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ Because of the way the `max()` function is implemented, avoid using other functi
6161
----
6262
max(a--, 0); // avoid this - yields incorrect results
6363
64-
a--; // use this instead -
65-
max(a, 0); // keep other math outside the function
64+
max(a, 0); // use this instead -
65+
a--; // keep other math outside the function
6666
----
6767
[%hardbreaks]
6868

0 commit comments

Comments
 (0)