Browse files

link to error attribute

  • Loading branch information...
1 parent 3f01d42 commit ad3722be2d7bae4138f4f3d856d64e21e7c8673c @kraih committed Mar 3, 2014
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/Mojo/JSON.pm
View
5 lib/Mojo/JSON.pm
@@ -382,7 +382,7 @@ L<Mojo::JSON> implements the following attributes.
my $err = $json->error;
$json = $json->error('Parser error');
-Parser errors.
+Parser error.
=head1 METHODS
@@ -393,8 +393,7 @@ following new ones.
my $value = $json->decode($bytes);
-Decode JSON to Perl value, an C<undef> return value indicates a bare C<null>
-or that decoding failed.
+Decode JSON to Perl value and set L</"error"> if decoding failed.
=head2 encode

0 comments on commit ad3722b

Please sign in to comment.