From: chromatic Date: Mon, 31 Aug 2009 20:14:57 +0000 (-0700) Subject: Minor typo fixes in documentation. X-Git-Tag: Try-Tiny-0.02~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a717a876765d848e55e48a1c6b3c7dd95999c458;p=p5sagit%2FTry-Tiny.git Minor typo fixes in documentation. --- diff --git a/lib/Try/Tiny.pm b/lib/Try/Tiny.pm index 6d1ade4..e3ec37f 100644 --- a/lib/Try/Tiny.pm +++ b/lib/Try/Tiny.pm @@ -132,7 +132,7 @@ of error values (simple strings, references, objects, overloaded objects, etc). All are exported by default using L. -In the future L may be used to allow the keywords to be renamed, +In the future L may be used to allow the keywords to be renamed, but this technically does not satisfy Adam Kennedy's definition of "Tiny". =over 4 @@ -143,7 +143,7 @@ Takes one mandatory and one optional catch subroutine. The mandatory subroutine is evaluated in the context of an C block. -If no error occured the value from the first block is returned. +If no error occurred the value from the first block is returned. If there was an error and the second subroutine was given it will be invoked with the error in C<$_> (localized) and as that block's first and only @@ -153,7 +153,7 @@ Note that the error may be false =item catch & -Just retuns the subroutine it was given. +Just returns the subroutine it was given. catch { ... } @@ -172,7 +172,7 @@ There are a number of issues with C. =head2 Clobbering $@ When you run an eval block and it succeeds, C<$@> will be cleared, potentially -cloberring an error that is currently being caught. +clobbering an error that is currently being caught. C<$@> must be properly localized before invoking C in order to avoid this issue.