Skip to content

Commit 51479af

Browse files
committed
Clarification.
1 parent d458018 commit 51479af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/Type/Pair.pod6

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,22 +116,22 @@ Defined as:
116116
multi method ACCEPTS(Pair:D $: Pair:D $topic)
117117
multi method ACCEPTS(Pair:D $: Mu $topic)
118118
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
120120
it and checks invocant's value C<.ACCEPTS> that value:
121121
122122
say %(:42a) ~~ :42a; # OUTPUT: «True␤»
123123
say %(:42a) ~~ :10a; # OUTPUT: «False␤»
124124
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
127127
be different:
128128
129129
say :42a ~~ :42a; # OUTPUT: «True␤»
130130
say :42z ~~ :42a; # OUTPUT: «True␤»
131131
say :10z ~~ :42a; # OUTPUT: «False␤»
132132
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
135135
as C<.Bool> of the invocant's value. This form can be used to check
136136
L<Bool|/type/Bool> values of multiple methods on the same object, such as
137137
L<IO::Path>, by using L<Junctions|/type/Junction>:

0 commit comments

Comments
 (0)