fix all examples to use handles; fix links to be to traits
[gitmo/Moose.git] / lib / Moose / AttributeHelpers / Trait / String.pm
index 36af4c7..1e62902 100644 (file)
@@ -73,9 +73,9 @@ Moose::AttributeHelpers::String
       is        => 'rw',
       isa       => 'Str',
       default   => sub { '' },
-      provides  => {
-          append => "add_text",
-          replace => "replace_text",
+      handles  => {
+          add_text     => 'append',
+          replace_text => 'replace',
       }
   );
 
@@ -90,7 +90,7 @@ metaclass or use temporary variables). Additional methods are provided for
 completion.
 
 If your attribute definition does not include any of I<is>, I<isa>,
-I<default> or I<provides> but does use the C<String> metaclass,
+I<default> or I<handles> but does use the C<String> metaclass,
 then this module applies defaults as in the L</SYNOPSIS>
 above. This allows for a very basic counter definition: