From: Bruno Vecchi Date: Wed, 7 Jan 2009 14:27:49 +0000 (+0000) Subject: Fixed typos in documentation for List.pm X-Git-Tag: 0.16~14 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b290a465387566d590f2093eb8efd3646c17e4bb;p=gitmo%2FMooseX-AttributeHelpers.git Fixed typos in documentation for List.pm --- diff --git a/lib/MooseX/AttributeHelpers/MethodProvider/List.pm b/lib/MooseX/AttributeHelpers/MethodProvider/List.pm index a1618d9..95648cc 100644 --- a/lib/MooseX/AttributeHelpers/MethodProvider/List.pm +++ b/lib/MooseX/AttributeHelpers/MethodProvider/List.pm @@ -161,14 +161,14 @@ passed as argument. print "$found\n"; # prints "bar" =item B -Returns every elemnt of the list that returns true in the anonymous +Returns every element of the list that returns true in the anonymous subroutine passed as argument. my @found = $stuff->filter_options( sub { $_[0] =~ /^b/ } ); print "@found\n"; # prints "bar baz boo" =item B -Executes the anonymouse subroutine given as argument sequentially +Executes the anonymous subroutine given as argument sequentially for each element of the list. my @mod_options = $stuff->map_options( sub { $_[0] . "-tag" } ); @@ -181,7 +181,7 @@ Returns an element of the list by its index. print "$option\n"; # prints "bar" =item B -Joins every elemnt of the list using the separator given as argument. +Joins every element of the list using the separator given as argument. my $joined = $stuff->join_options( ':' ); print "$joined\n"; # prints "foo:bar:baz:boo"