Skip to content

Commit

Permalink
Change sample value to possibly minimize confusion
Browse files Browse the repository at this point in the history
It's not 100% clear with the `1, 2` example that `$!y` isn't being calculated from the `$!x`.
  • Loading branch information
revhippie committed Jan 15, 2016
1 parent 22840f1 commit 28d006b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Language/objects.pod
Original file line number Diff line number Diff line change
Expand Up @@ -377,14 +377,14 @@ class Point {
has $.x;
has $.y = 2 * $!x;
}
my $p = PointB<.L<new>>( x L«=>» 1, y => 2);
my $p = PointB<.L<new>>( x L«=>» 5, y => 2);
# ^^^ inherited from class Mu
say "x: ", $p.x;
say "y: ", $p.y;
This outputs:
x: 1
x: 5
y: 2
=for code :allow<B L>
Expand Down

0 comments on commit 28d006b

Please sign in to comment.