Login
Fixed POD typos, as reported in RT #26462
authorJeffrey Ryan Thalhammer <jeff@imaginative-software.com>
Mon, 21 May 2007 00:19:16 +0000 (00:19 +0000)
committerJeffrey Ryan Thalhammer <jeff@imaginative-software.com>
Mon, 21 May 2007 00:19:16 +0000 (00:19 +0000)
Changes
lib/Perl/Critic/Policy/ControlStructures/ProhibitCascadingIfElse.pm

diff --git a/Changes b/Changes
index 4b6538f..8b78255 100644 (file)
--- a/Changes
+++ b/Changes
@@ -17,6 +17,7 @@
 
      Bug Fixes:
      * 27073: False positive in RequireUpperCaseHeredocTerminator
+     * 26462: ControlStructures::ProhibitCascadingIfElse pod typo
      * ValuesAndExpressions::ProhibitCommaSeparatedStatements was complaining
        about multiple values in the list to be iterated over by a foreach
        loop.
index 87320ce..544f033 100644 (file)
@@ -83,7 +83,7 @@ hash lookup instead.  See L<Switch> for another approach.
   if ($condition1) {         #ok
       $foo = 1;
   }
-  elseif ($condition2) {     #ok
+  elsif ($condition2) {      #ok
       $foo = 2;
   }
   elsif ($condition3) {      #ok
@@ -92,7 +92,7 @@ hash lookup instead.  See L<Switch> for another approach.
   elsif ($condition4) {      #too many!
       $foo = 4;
   }
-  else                     #ok
+  else {                     #ok
       $foo = $default;
   }