diff --git a/doc/Language/functions.pod6 b/doc/Language/functions.pod6 index 5abd72b6a..79313c5a0 100644 --- a/doc/Language/functions.pod6 +++ b/doc/Language/functions.pod6 @@ -1034,6 +1034,7 @@ sub are-equal (Int $x, Int $y --> Bool(Int) ) { $x - $y }; for (2,4) X (1,2) -> ($a,$b) { say "Are $a and $b equal? ", are-equal($a, $b); } # OUTPUT: «Are 2 and 1 equal? True␤Are 2 and 2 equal? False␤Are 4 and 1 equal? True␤Are 4 and 2 equal? True␤» +=end code In this case, we are coercing an C to a C, which is then printed (put into a string context) in the C loop that calls the function.