Documenting that 'has' comes before 'with' when satisfying role requirements
[gitmo/Moose.git] / lib / Moose / Manual / Delegation.pod
index fd155f1..ffa0efc 100644 (file)
@@ -108,12 +108,12 @@ similar.
       handles => {
           add_item  => 'push',
           next_item => 'shift',
-      }
+      },
   )
 
 By providing the C<Array> trait to the C<traits> parameter you signal to
 Moose that you would like to use the set of Array helpers. Moose will then
-create C<add_item> and C<next_item> methods that "just work". Behind the
+create C<add_item> and C<next_item> method that "just works". Behind the
 scenes C<add_item> is something like
 
   sub add_item {
@@ -144,12 +144,11 @@ curry methods when creating delegates.
         isa     => 'HTTP::Request',
         handles => {
             set_user_agent => [ header => 'UserAgent' ],
-        }
+        },
     )
 
-With this definition calling C<< $spider->set_user_agent('MyClient') >> will
-behind the scenes call
-C<< $spider->request->header('UserAgent', 'MyClient') >>.
+With this definition, calling C<< $spider->set_user_agent('MyClient') >> will
+behind the scenes call C<< $spider->request->header('UserAgent', 'MyClient') >>.
 
 =head1 MISSING ATTRIBUTES