Skip to content

Commit

Permalink
fix a few typos in the ojo documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 21, 2017
1 parent fd0e182 commit 86c5805
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

7.21 2017-01-20
7.21 2017-01-21
- Added extract_usage function to Mojo::Util.
- Improve getopt function in Mojo::Util to use @ARGV by default.

Expand Down
8 changes: 5 additions & 3 deletions lib/ojo.pm
Expand Up @@ -119,6 +119,8 @@ L<Mojo::Message::Response> object.
Turn string into a L<Mojo::File> object.
$ perl -Mojo -E 'say r j f("hello.json")->slurp'
=head2 g
my $res = g('example.com');
Expand Down Expand Up @@ -149,7 +151,7 @@ L<Mojo::Message::Response> object.
Encode Perl data structure or decode JSON with L<Mojo::JSON/"j">.
$ perl -Mojo -E 'b(j({hello => "world!"}))->spurt("hello.json")'
$ perl -Mojo -E 'f("hello.json")->spurt(j {hello => "world!"})'
=head2 n
Expand Down Expand Up @@ -187,7 +189,7 @@ L<Mojo::Message::Response> object.
Dump a Perl data structure with L<Mojo::Util/"dumper">.
perl -Mojo -E 'say r(g("example.com")->headers->to_hash)'
perl -Mojo -E 'say r g("example.com")->headers->to_hash'
=head2 t
Expand Down Expand Up @@ -215,7 +217,7 @@ L<Mojo::Message::Response> object.
Turn HTML/XML input into L<Mojo::DOM> object.
$ perl -Mojo -E 'say x(b("test.html")->slurp)->at("title")->text'
$ perl -Mojo -E 'say x(f("test.html")->slurp)->at("title")->text'
=head1 SEE ALSO
Expand Down

0 comments on commit 86c5805

Please sign in to comment.