diff --git a/doc/Type/Routine.pod6 b/doc/Type/Routine.pod6 index adbf6e561..8ec49e9f8 100644 --- a/doc/Type/Routine.pod6 +++ b/doc/Type/Routine.pod6 @@ -181,24 +181,26 @@ The C trait is a promise by the programmer to the compiler that it can constant-fold calls to such functions when the arguments are known at compile time. - sub syllabes() is pure { - say "Generating syllabes"; + sub syllables() is pure { + say "Generating syllables"; my @vowels = ; return @vowels.append: X~ @vowels; } To see it an action with a particular compiler you can try this example: + =begin code :preamble BEGIN { say ‘Begin’ } say ‘Start’; - say (^100).map: { syllabes().pick(2..5).join("") }; + say (^100).map: { syllables().pick(2..5).join("") }; # Example output: # Begin - # Generating syllabes + # Generating syllables # Start # (matiroi yeterani shoriyuru... + =end code Essentially this allows the compiler to perform some operations at diff --git a/doc/Type/Signature.pod6 b/doc/Type/Signature.pod6 index 83651b4f8..f3286c3b8 100644 --- a/doc/Type/Signature.pod6 +++ b/doc/Type/Signature.pod6 @@ -239,8 +239,8 @@ sense for a routine to accept. This can be done with the C<:U> type constraint, which checks the value passed if it is a I, rather than an object instance. - sub can-turn-into(Str $þing, Any:U $type) { - return so $þing.$type; + sub can-turn-into(Str $string, Any:U $type) { + return so $string.$type; } say can-turn-into("3", Int); say can-turn-into("6.5", Int); diff --git a/xt/code.pws b/xt/code.pws index e7b183985..86670616a 100644 --- a/xt/code.pws +++ b/xt/code.pws @@ -242,6 +242,7 @@ majf makequestionable manymanymany matchobject +matiroi maybeval mday messageboxa @@ -340,6 +341,7 @@ saysomething setcallback setgoal sev +shoriyuru shortname skippingarray sl @@ -431,6 +433,7 @@ xoooo xt xyz yday +yeterani yourapp yourmodule yournick