Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more commas
  • Loading branch information
kraih committed Feb 29, 2016
1 parent fcd3137 commit 464b583
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/Base.pm
Expand Up @@ -203,7 +203,7 @@ L<Mojo::Base> implements the following methods.
SubClass->attr(['name1', 'name2', 'name3'] => 'foo');
SubClass->attr(['name1', 'name2', 'name3'] => sub {...});
Create attribute accessor for hash-based objects, an array reference can be
Create attribute accessors for hash-based objects, an array reference can be
used to create more than one at a time. Pass an optional second argument to set
a default value, it should be a constant or a callback. The callback will be
executed at accessor read time if there's no set value. Accessors can be
Expand All @@ -226,7 +226,7 @@ pass it either a hash or a hash reference with attribute values.
$object = $object->tap($method, @args);
K combinator, tap into a method chain to perform operations on an object within
the chain. The object will be the first argument passed to the callback and is
the chain. The object will be the first argument passed to the callback, and is
also available as C<$_>.
# Longer version
Expand Down
8 changes: 4 additions & 4 deletions lib/Mojo/Collection.pm
Expand Up @@ -179,7 +179,7 @@ string.
Evaluate callback for each element in collection, or return all elements as a
list if none has been provided. The element will be the first argument passed
to the callback and is also available as C<$_>.
to the callback, and is also available as C<$_>.
# Make a numbered list
$collection->each(sub {
Expand All @@ -198,7 +198,7 @@ to the callback and is also available as C<$_>.
Evaluate regular expression/callback for, or call method on, each element in
collection and return the first one that matched the regular expression, or for
which the callback/method returned true. The element will be the first argument
passed to the callback and is also available as C<$_>.
passed to the callback, and is also available as C<$_>.
# Longer version
my $first = $collection->first(sub { $_->$method(@args) });
Expand Down Expand Up @@ -229,7 +229,7 @@ all elements.
Evaluate regular expression/callback for, or call method on, each element in
collection and create a new collection with all elements that matched the
regular expression, or for which the callback/method returned true. The element
will be the first argument passed to the callback and is also available as
will be the first argument passed to the callback, and is also available as
C<$_>.
# Longer version
Expand Down Expand Up @@ -265,7 +265,7 @@ Return the last element in collection.
Evaluate callback for, or call method on, each element in collection and create
a new collection from the results. The element will be the first argument
passed to the callback and is also available as C<$_>.
passed to the callback, and is also available as C<$_>.
# Longer version
my $new = $collection->map(sub { $_->$method(@args) });
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -658,7 +658,7 @@ commonly used to pass parts of a template to helpers.

You should always try to keep your actions small and reuse as much code as
possible. Helpers make this very easy, they get passed the current controller
object as first argument and you can use them to do pretty much anything an
object as first argument, and you can use them to do pretty much anything an
action could do.

use Mojolicious::Lite;
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Guides/Tutorial.pod
Expand Up @@ -75,8 +75,8 @@ L<Mojolicious::Guides::Cookbook/"DEPLOYMENT">.

Routes are basically just fancy paths that can contain different kinds of
placeholders and usually lead to an action, if they match the path part of the
request URL. The first argument passed to all actions C<$c> is a
L<Mojolicious::Controller> object containing both the HTTP request and
request URL. The first argument passed to all actions (C<$c>), is a
L<Mojolicious::Controller> object, containing both, the HTTP request and
response.

use Mojolicious::Lite;
Expand Down

0 comments on commit 464b583

Please sign in to comment.