Skip to content

Commit

Permalink
Minor grammar change to Hash section
Browse files Browse the repository at this point in the history
  • Loading branch information
samcv committed Jul 11, 2017
1 parent db9bfdb commit 1df9aec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/Type/Hash.pod6
Expand Up @@ -60,7 +60,7 @@ occurrence is stored in the hash:
my %h = a => 1, a => 2;
say %h<a>; # OUTPUT: «2␤»
To assign to a variable without the C<%> sigil, you may use the C<%()> hash
To assign a hash to a variable which does not have the C<%> sigil, you may use the C<%()> hash
constructor:
my $h = %( a => 1, b => 2 );
Expand Down Expand Up @@ -101,8 +101,8 @@ my @names = map {
}, @people;
=end code
Instead, you should use the C<%()> hash constructor and only use C<{}> for
creating Block's.
This would have been avoided if you had used the C<%()> hash constructor.
Only use curly braces for creating Blocks.
=head2 Slices
Expand Down

0 comments on commit 1df9aec

Please sign in to comment.