diff --git a/doc/Type/Hash.pod6 b/doc/Type/Hash.pod6 index 3d4e02521..928bbb38c 100644 --- a/doc/Type/Hash.pod6 +++ b/doc/Type/Hash.pod6 @@ -60,7 +60,7 @@ occurrence is stored in the hash: my %h = a => 1, a => 2; say %h; # 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 ); @@ -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