From: Dave Romano Date: Tue, 14 Feb 2012 21:26:18 +0000 (-0600) Subject: Some typo fixes for the Class::MOP docs X-Git-Tag: 2.0500~95 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c563582e753731dafe85baa91f4670b2bbdfb6ca;p=gitmo%2FMoose.git Some typo fixes for the Class::MOP docs --- diff --git a/lib/Class/MOP.pm b/lib/Class/MOP.pm index 4f70a1a..fce3380 100644 --- a/lib/Class/MOP.pm +++ b/lib/Class/MOP.pm @@ -777,12 +777,12 @@ method dispatch. This module was designed to be as unintrusive as possible. Many of its features are accessible without B change to your existing -code. It is meant to be a compliment to your existing code and not an +code. It is meant to be a complement to your existing code and not an intrusion on your code base. Unlike many other B modules, this module B require you subclass it, or even that you C it in within your module's package. -The only features which requires additions to your code are the +The only features which require additions to your code are the attribute handling and instance construction features, and these are both completely optional features. The only reason for this is because Perl 5's object system does not actually have these features built @@ -819,8 +819,8 @@ given class is either the same as (or a subclass of) all of the class's ancestors. Downward metaclass compatibility means that the metaclasses of a -given class's ancestors are all either the same as (or a subclass -of) that metaclass. +given class's ancestors are all the same as (or a subclass of) that +metaclass. Here is a diagram showing a set of two classes (C and C) and two metaclasses (C and C) which have correct @@ -861,7 +861,7 @@ create an incorrect type of metaclass for you. This is a very rare problem, and one which can only occur if you are doing deep metaclass programming. So in other words, don't worry about it. -Note that if you're using L we encourage you to I use +Note that if you're using L we encourage you to I use the L pragma, and instead use L to apply roles to a class's metaclasses. This topic is covered at length in various L recipes. @@ -934,7 +934,7 @@ returned. =head2 Metaclass cache functions -Class::MOP holds a cache of metaclasses. The following are functions +C holds a cache of metaclasses. The following are functions (B) which can be used to access that cache. It is not recommended that you mess with these. Bad things could happen, but if you are brave and willing to risk it: go for it!