Skip to content

Commit 53cfbdf

Browse files
committed
fix Hash adverb examples
1 parent 409f9ed commit 53cfbdf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/Type/Hash.pod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -273,22 +273,22 @@ Use C<:delete> to remove a C<Pair> from the C<Hash>.
273273
my %h = a => 1;
274274
dd %h; # Hash %h = {:a(1)}
275275
%h<a>:delete;
276-
dd %h # Hash %h = {}
276+
dd %h; # Hash %h = {}
277277
278278
=head2 C<:p>
279279
280280
The adverb C<:p> returns a C<Pair> or a List of C<Pair> instead of just the value.
281281
282282
my %h = a => 1, b => 2;
283-
say %h<a>; # a => 1
284-
say %h<a b>; # (a => 1 b=> 2)
283+
say %h<a>:p; # a => 1
284+
say %h<a b>:p; # (a => 1 b=> 2)
285285
286286
=head2 C<:v> and C<:k>
287287
288288
The adverbs C<:v> and C<:k> return the key or value or a list their of.
289289
290290
my %h = a => 1, b => 2;
291-
say %h<a>:k; # a
292-
say %h<a b>:k # (a b)
291+
say %h<a>:k; # a
292+
say %h<a b>:k # (a b)
293293
294294
=end pod

0 commit comments

Comments
 (0)