From: Vincent Pit Date: Tue, 17 Mar 2015 13:44:04 +0000 (-0300) Subject: Fix an off-by-one description in POD X-Git-Tag: v0.03~8 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FScope-Context.git;a=commitdiff_plain;h=3c4dd9fbf7894245f46e02300a54df2971e12a27 Fix an off-by-one description in POD --- diff --git a/lib/Scope/Context.pm b/lib/Scope/Context.pm index cd0d630..6658c3c 100644 --- a/lib/Scope/Context.pm +++ b/lib/Scope/Context.pm @@ -365,7 +365,7 @@ sub up { my $sub_cxt = $cxt->sub($frames); my $sub_cxt = Scope::Context->sub; -Returns a new L object pointing to the C<$frames>-th subroutine scope above the scope pointed by the invocant. +Returns a new L object pointing to the C<$frames + 1>-th subroutine scope above the scope pointed by the invocant. This method can also be invoked as a class method, in which case it is equivalent to calling L on a L object for the current context. @@ -409,7 +409,7 @@ sub sub { my $eval_cxt = $cxt->eval($frames); my $eval_cxt = Scope::Context->eval; -Returns a new L object pointing to the C<$frames>-th C scope above the scope pointed by the invocant. +Returns a new L object pointing to the C<$frames + 1>-th C scope above the scope pointed by the invocant. This method can also be invoked as a class method, in which case it is equivalent to calling L on a L object for the current context.