Skip to content

Commit 6906812

Browse files
committed
fix max and min
1 parent 9229d86 commit 6906812

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

v0.3/handbook/libraries/stdlib.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,9 @@ bind
308308
takes the higher score
309309
~~~
310310
search
311-
[#scores pac-man donkey-kong]
312-
best-score = math/min[a: pac-man, b: donkey-kong]
311+
pac-man = 10
312+
donkey-kong = 13
313+
best-score = math/max[a: pac-man, b: donkey-kong]
313314
bind
314315
[#ui/text text: "The winning score is {{best-score}}"]
315316
~~~
@@ -337,7 +338,8 @@ bind
337338
takes the lower score
338339
~~~
339340
search
340-
[#scores pac-man donkey-kong]
341+
pac-man = 10
342+
donkey-kong = 13
341343
worst-score = math/min[a: pac-man, b: donkey-kong]
342344
bind
343345
[#ui/text text: "The losing score is {{worst-score}}"]

0 commit comments

Comments
 (0)