Skip to content

Commit

Permalink
small documentation tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 23, 2013
1 parent ce3b5d1 commit 89a62f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/Util.pm
Expand Up @@ -495,7 +495,7 @@ Decode bytes to characters and return C<undef> if decoding failed.
deprecated 'foo is DEPRECATED in favor of bar';
Warn about deprecated feature from perspective of caller. You can also set the
MOJO_FATAL_DEPRECATIONS environment variable to make deprecations fatal.
MOJO_FATAL_DEPRECATIONS environment variable to make them die instead.
=head2 encode
Expand Down
4 changes: 2 additions & 2 deletions t/mojo/util.t
Expand Up @@ -409,9 +409,9 @@ is MojoMonkeyTest::yang(), 'yang', 'right result';
local $ENV{MOJO_FATAL_DEPRECATIONS} = 1;
eval { deprecated 'This dies from caller' };
like $warn, qr/This warns from caller at .*util\.t line \d+/,
"warn message is right deprecation";
'right warning';
like $die, qr/This dies from caller at .*util\.t line \d+/,
"die message is right for deprecation";
'right exception';
}

done_testing();

0 comments on commit 89a62f9

Please sign in to comment.