Skip to content

Commit

Permalink
Fixes #2672, it was the example that was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Mar 14, 2019
1 parent 627fa4e commit eb00a74
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/Language/js-nutshell.pod6
Expand Up @@ -210,10 +210,13 @@ say '1' === 1; # True
say {} === {}; # False
my \hash = {};
my %hash := hash;
my %hash = hash;
say hash === %hash; # False
=end code
In the last case it's the same object, but containers are different, which is
why it returns False.
The inverse of C<===> is C<!==>.
This is where Perl 6's other equality operators are useful. If the values have
Expand Down

0 comments on commit eb00a74

Please sign in to comment.