From: Dave Rolsky Date: Sun, 17 Oct 2010 20:42:09 +0000 (-0500) Subject: Fix comment to match code X-Git-Tag: 1.16~23^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=704926bb5392cb729e71cd7dcab0b59173e53b17;p=gitmo%2FMoose.git Fix comment to match code --- diff --git a/lib/Moose/Meta/Method/Constructor.pm b/lib/Moose/Meta/Method/Constructor.pm index a9aa244..ff26a10 100644 --- a/lib/Moose/Meta/Method/Constructor.pm +++ b/lib/Moose/Meta/Method/Constructor.pm @@ -149,8 +149,7 @@ sub _generate_BUILDARGS { and ( !$buildargs or $buildargs->body == \&Moose::Object::BUILDARGS ) ) { - # This is basically a copy of Moose::Object::BUILDARGS wrapped in a do - # {} block. + # This is the same logic as Moose::Object::BUILDARGS return sprintf( <<'EOF', $self->_inline_throw_error( q{'Single parameters to new() must be a HASH ref'}, 'data => $_[0]' ) ); do { my $params;