From e0ca4a2adab7400db61b0585744834dfd050dac9 Mon Sep 17 00:00:00 2001 From: Elizabeth Mattijsen Date: Mon, 4 Jun 2018 13:13:19 +0200 Subject: [PATCH] The colon means a named variable, *not* a Pair Specifying a Pair would be a Positional, and thus not match the signature. --- doc/Language/5to6-nutshell.pod6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Language/5to6-nutshell.pod6 b/doc/Language/5to6-nutshell.pod6 index 962641373..058a2d38b 100644 --- a/doc/Language/5to6-nutshell.pod6 +++ b/doc/Language/5to6-nutshell.pod6 @@ -622,7 +622,7 @@ sub get_the_loot( $loot, *%options ) { # The * means to slurp everything get_the_loot( 'diamonds', quiet_level => 'very', quantity => 9 ); # Note: no curly braces in this API # PerlĀ 6, API changed to specify valid options -# The colon before the sigils means to expect a Pair, +# The colon before the sigils means to expect a named variable, # with the key having the same name as the variable. sub get_the_loot( $loot, :$quiet_level?, :$quantity = 1 ) { # This version will check for unexpected arguments!