Skip to content

Commit 0f52b06

Browse files
committed
fix compilation errors
1 parent 2f02075 commit 0f52b06

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

doc/Type/Map.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ operator:
2727
2828
my $map = Map.new('a', 1, 'b', 2);
2929
say $map{'a'}; # OUTPUT: «1␤»
30-
say $m{ 'a', 'b' }; # OUTPUT: «(1 2)␤»
30+
say $map{ 'a', 'b' }; # OUTPUT: «(1 2)␤»
3131
3232
To check whether a given key is stored in a Map, modify the access
3333
with the C<:exists> adverb:

doc/Type/SetHash.pod6

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,10 @@ It is also possible to initialize a single key with the use of C<{}>:
7777
7878
or, in order to initialize more than one key at the same time, use a list assignment:
7979
80-
$sh = SetHash.new;
80+
my $sh = SetHash.new;
8181
$sh{ 'a', 'b', 'c' } = True, False, True;
8282
say $sh.keys.perl; # OUTPUT: «("a", "c").Seq␤»
8383
84-
8584
=head1 Operators
8685
8786
Perl 6 provides common set operators, which can take C<SetHash>es (or any other

0 commit comments

Comments
 (0)