@@ -116,22 +116,22 @@ Defined as:
116
116
multi method ACCEPTS(Pair:D $: Pair:D $topic)
117
117
multi method ACCEPTS(Pair:D $: Mu $topic)
118
118
119
- If C < topic > is an L < Associative|/type/Associative > , looks up the value using invocant's key in
119
+ If C < % topic> is an L < Associative|/type/Associative > , looks up the value using invocant's key in
120
120
it and checks invocant's value C < .ACCEPTS > that value:
121
121
122
122
say %(:42a) ~~ :42a; # OUTPUT: «True»
123
123
say %(:42a) ~~ :10a; # OUTPUT: «False»
124
124
125
- If C < topic > is another L < Pair|/type/Pair > , checks the invocant's value
126
- C < .ACCEPTS > the C < topic's > value. Note that the keys are not considered and can
125
+ If C < $ topic> is another L < Pair|/type/Pair > , checks the invocant's value
126
+ C < .ACCEPTS > the C < $ topic> 's value. Note that the keys are not considered and can
127
127
be different:
128
128
129
129
say :42a ~~ :42a; # OUTPUT: «True»
130
130
say :42z ~~ :42a; # OUTPUT: «True»
131
131
say :10z ~~ :42a; # OUTPUT: «False»
132
132
133
- If C < topic > is any other value, uses the invocant's key as the name of the
134
- method to call on C < topic > and checks that its L « C < .Bool > |/routine/Bool» is the same
133
+ If C < $ topic> is any other value, uses the invocant's key as the name of the
134
+ method to call on C < $ topic> and checks that its L « C < .Bool > |/routine/Bool» is the same
135
135
as C < .Bool > of the invocant's value. This form can be used to check
136
136
L < Bool|/type/Bool > values of multiple methods on the same object, such as
137
137
L < IO::Path > , by using L < Junctions|/type/Junction > :
0 commit comments