[Moose-commits] r7615 - Moose/trunk/lib/Moose/Manual

autarch at code2.0beta.co.uk autarch at code2.0beta.co.uk
Wed Feb 11 19:32:14 GMT 2009


Author: autarch
Date: 2009-02-11 11:32:13 -0800 (Wed, 11 Feb 2009)
New Revision: 7615

Modified:
   Moose/trunk/lib/Moose/Manual/BestPractices.pod
Log:
Make the "do not coerce class names" example match basics recipe 5


Modified: Moose/trunk/lib/Moose/Manual/BestPractices.pod
===================================================================
--- Moose/trunk/lib/Moose/Manual/BestPractices.pod	2009-02-11 19:31:37 UTC (rev 7614)
+++ Moose/trunk/lib/Moose/Manual/BestPractices.pod	2009-02-11 19:32:13 UTC (rev 7615)
@@ -169,9 +169,9 @@
 
 Instead, we can create an "empty" subtype for the coercion:
 
-    subtype 'My.HTTP.Headers' => as class_type('HTTP::Headers');
+    subtype 'My.HTTP::Headers' => as class_type('HTTP::Headers');
 
-    coerce 'My.HTTP.Headers'
+    coerce 'My.HTTP::Headers'
         => from 'HashRef'
             => via { HTTP::Headers->new( %{$_} ) };
 




More information about the Moose-commits mailing list