From: Dave Rolsky Date: Sun, 12 Apr 2009 14:27:48 +0000 (-0500) Subject: various typo fixes from Matt Kraai X-Git-Tag: 0.75~20 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5a3fb5fc370f3256bf22985c24a08df50f514e58;p=gitmo%2FMoose.git various typo fixes from Matt Kraai --- diff --git a/lib/Moose/Manual/MOP.pod b/lib/Moose/Manual/MOP.pod index e1c9c4d..03f002b 100644 --- a/lib/Moose/Manual/MOP.pod +++ b/lib/Moose/Manual/MOP.pod @@ -128,10 +128,10 @@ class is immutable, calling any of these update methods will throw an exception. You can make a class mutable again simply by calling C<< -$metaclass->make_mutable >>. Once you're done changing it, you can -restore immutability by calling C<< $metaclass->make_immutable >>. +$meta->make_mutable >>. Once you're done changing it, you can +restore immutability by calling C<< $meta->make_immutable >>. -However, the most common use for this part of of the meta API is as +However, the most common use for this part of the meta API is as part of Moose extensions. These extensions should assume that they are being run before you make a class immutable. diff --git a/lib/Moose/Manual/MooseX.pod b/lib/Moose/Manual/MooseX.pod index 607bf35..7cac13f 100644 --- a/lib/Moose/Manual/MooseX.pod +++ b/lib/Moose/Manual/MooseX.pod @@ -80,7 +80,7 @@ arguments. package User; use Moose; - use MooseX::Params::Validate qw( validatep ); + use MooseX::Params::Validate; sub login { my $self = shift; @@ -166,7 +166,7 @@ cool, but still new and experimental. This extension helps you build a type library for your application. It also lets you predeclare type names and use them as barewords. - use MooseX::Types -declare => ['PosInt']; + use MooseX::Types -declare => ['PositiveInt']; use MooseX::Types::Moose 'Int'; subtype PositiveInt @@ -221,7 +221,7 @@ file, and signal handling. If you find yourself wanting a role that customizes itself for each consumer, this is the tool for you. With this module, you can create a -role that accepts parameters and generates attributes, methods, etc on +role that accepts parameters and generates attributes, methods, etc. on a customized basis for each consumer. =head2 L diff --git a/lib/Moose/Manual/Types.pod b/lib/Moose/Manual/Types.pod index 7b623d1..ab67bfb 100644 --- a/lib/Moose/Manual/Types.pod +++ b/lib/Moose/Manual/Types.pod @@ -69,7 +69,7 @@ can even do something like C. The C type deserves a special mention. Used by itself, it doesn't really mean anything (and is equivalent to C). When it is parameterized, it means that the value is either C or the -parameterized type. So C means an integer or C +parameterized type. So C means an integer or C. For more details on the type hierarchy, see L. @@ -403,7 +403,7 @@ C function exported by L: class_type('MyApp::User') - unless find_type_constraint('MyApp::User') || ; + unless find_type_constraint('MyApp::User'); This sort of "find or create" logic is simple to write, and will let you work around load order issues.