Skip to content

Commit

Permalink
use nbsp
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Jun 25, 2017
1 parent 1b648fa commit 4fa84d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Type/Hash.pod6
Expand Up @@ -68,7 +68,7 @@ constructor:
say $h<a>; # OUTPUT: «1␤»
B<NOTE:> Hashes can also be constructed with C<{ }> similarly to how they are
in Perl 5. It is recommended to use the C<%()> hash constructor, as braces
in Perl 5. It is recommended to use the C<%()> hash constructor, as braces
are reserved for creating L<Block|/type/Block> objects and therefore braces
only create Hash objects in specific circumstances.
Expand All @@ -93,7 +93,7 @@ not a Hash:
my $query = { name => "$_<firstName> $_<lastName>" };
say $query2.WHAT; # OUTPUT: «(Block)␤»
say $query2<name>; # fails
CATCH { default { put .^name, ': ', .Str } };
# OUTPUT: «X::AdHoc: Type Block does not support associative indexing.␤»
lookup-user($query); # Type check failed in binding $h; expected Hash but got Block
Expand Down

0 comments on commit 4fa84d0

Please sign in to comment.