From: Curtis Jewell Date: Sun, 16 Aug 2009 05:39:35 +0000 (-0600) Subject: Making the docs reflect that 'use metaclass' has to go before 'use Moose'. X-Git-Tag: 0.89_01~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=af1c30e013e6362ad2c625a2e672dca42f0b6dee;p=gitmo%2FMoose.git Making the docs reflect that 'use metaclass' has to go before 'use Moose'. --- diff --git a/lib/Moose/Error/Confess.pm b/lib/Moose/Error/Confess.pm index c6c434e..9d14865 100644 --- a/lib/Moose/Error/Confess.pm +++ b/lib/Moose/Error/Confess.pm @@ -21,10 +21,13 @@ Moose::Error::Confess - Prefer C =head1 SYNOPSIS - use metaclass => ( - metaclass => "Moose::Meta::Class", - error_class => "Moose::Error::Confess", + # Metaclass definition must come before Moose is used. + use metaclass ( + metaclass => 'Moose::Meta::Class', + error_class => 'Moose::Error::Confess', ); + use Moose; + # ... =head1 DESCRIPTION diff --git a/lib/Moose/Error/Croak.pm b/lib/Moose/Error/Croak.pm index 1386543..9d59dc5 100644 --- a/lib/Moose/Error/Croak.pm +++ b/lib/Moose/Error/Croak.pm @@ -26,10 +26,13 @@ Moose::Error::Croak - Prefer C =head1 SYNOPSIS - use metaclass => ( - metaclass => "Moose::Meta::Class", - error_class => "Moose::Error::Croak", + # Metaclass definition must come before Moose is used. + use metaclass ( + metaclass => 'Moose::Meta::Class', + error_class => 'Moose::Error::Croak', ); + use Moose; + # ... =head1 DESCRIPTION