Skip to content

Commit 23a255d

Browse files
committed
Rephrase the Pair.freeze introduction.
The Pair/Scalar behavior is not something to 'avoid', it just is the behaviour. Explain that such behaviour can be 'changed' (not 'avoided') via Pair.freeze.
1 parent 22da69d commit 23a255d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/Type/Pair.pod6

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ $pair.say; # OUTPUT: a => value B
6565
Please also note that this behavior is totally unrelated to the way used to build the C<Pair> itself
6666
(i.e., explicit usage of C<new>, use of colon, fat arrow), as well as if the C<Pair> is bound
6767
to a variable.
68-
It is possible to avoid such behaviour forcing the C<Pair> to remove the scalar container
69-
and to hold the effective value itself using the method L<freeze|/type/Pair#method_freeze>:
68+
69+
It is possible to change the above behaviour forcing the C<Pair> to remove the scalar container
70+
and to hold the effective value itself via the method L<freeze|/type/Pair#method_freeze>:
7071
7172
=begin code
7273
my $v = 'value B';

0 commit comments

Comments
 (0)