Skip to content

Commit

Permalink
slightly better description for pluck
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 6, 2014
1 parent 52eb3e3 commit b9c0dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/Collection.pm
Expand Up @@ -266,8 +266,8 @@ Construct a new array-based L<Mojo::Collection> object.
my $new = $collection->pluck($method);
my $new = $collection->pluck($method, @args);
Extract hash reference value or call method on each element in collection and
create a new collection from the results.
Extract hash reference value from, or call method on, each element in
collection and create a new collection from the results.
# Longer version
my $new = $collection->map(sub { $_->{$key} });
Expand Down

0 comments on commit b9c0dd1

Please sign in to comment.