Skip to content

Commit 1e8ee5b

Browse files
committed
fix preamble so example compiles
1 parent 608ad83 commit 1e8ee5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Language/objects.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ my $p1 = Point.new( x => 10, y => 5 );
838838
=end code
839839
840840
The following C<BUILD> method is equivalent to the above:
841-
=begin code :preamble<has $!enc; has $!data>
841+
=begin code :preamble<has $.x; has $.y>
842842
submethod BUILD(:$!x, :$!y) {
843843
# Nothing to do here anymore, the signature binding
844844
# does all the work for us.

0 commit comments

Comments
 (0)