Skip to content

Commit

Permalink
clone() method is public from Element, don't call it internal
Browse files Browse the repository at this point in the history
  • Loading branch information
moregan committed Nov 29, 2014
1 parent 17a2d13 commit 0768de2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PPI/Document.pm
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ C<STORABLE_thaw> hooks to provide native support for L<Storable>,
if you have it installed.
However if you want to clone a Document, you are highly recommended
to use the internal C<$Document-E<gt>clone> method rather than Storable's
to use the C<$Document-E<gt>clone> method rather than Storable's
C<dclone> function (although C<dclone> should still work).
=head1 METHODS
Expand Down Expand Up @@ -791,7 +791,7 @@ Returns a L<PPI::Document::Normalized> object, or C<undef> on error.
sub normalized {
# The normalization process will utterly destroy and mangle
# anything passed to it, so we are going to only give it a
# clone of ourself.
# clone of ourselves.
PPI::Normal->process( $_[0]->clone );
}

Expand Down

0 comments on commit 0768de2

Please sign in to comment.