From: Ricardo Signes Date: Sat, 15 Sep 2012 02:15:31 +0000 (-0400) Subject: correct prototypes in docs X-Git-Tag: Try-Tiny-0.13~6^2~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ae5ed1be9a1184e7895959bc40a29795e6dadf8c;p=p5sagit%2FTry-Tiny.git correct prototypes in docs --- diff --git a/Changes b/Changes index e45b95e..840f0b3 100644 --- a/Changes +++ b/Changes @@ -5,6 +5,8 @@ - proper exception on erroneous usage of bare catch/finally (RT#81070) - proper exception on erroneous use of multiple catch{} blocks - clarify exception occuring on unterminated try block (RT#75712) + - fix the prototypes shown in docs to match code (RT#79590; thanks, Pushtaev + Vadim) 0.12 - doc fixes diff --git a/lib/Try/Tiny.pm b/lib/Try/Tiny.pm index f36fe2e..54d3417 100644 --- a/lib/Try/Tiny.pm +++ b/lib/Try/Tiny.pm @@ -242,7 +242,7 @@ still be invoked. Once all execution is finished then the C block, if given, will execute. -=item catch (&;$) +=item catch (&;@) Intended to be used in the second argument position of C. @@ -262,7 +262,7 @@ L), you'll need to do: local $@ = $_; -=item finally (&;$) +=item finally (&;@) try { ... } catch { ... }