]> git.donarmstrong.com Git - perltidy.git/commitdiff
update docs
authorSteve Hancock <perltidy@users.sourceforge.net>
Fri, 2 Oct 2020 22:43:20 +0000 (15:43 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Fri, 2 Oct 2020 22:43:20 +0000 (15:43 -0700)
bin/perltidy

index c542cb47b8fb857d4986106e8ce41c05a46b6351..25a23c694596d5100adfb2581aaef799956aeb38 100755 (executable)
@@ -1251,11 +1251,11 @@ program vulnerable to parsing problems by Perl.  For example, the following
 two-line program will run as written but will have a syntax error if
 reformatted with -sfp:
 
-  if ( -e filename() ) { print "exists\n"; }
+  if ( -e filename() ) { print "I'm here\n"; }
   sub filename { return $0 }
 
-The syntax error can be removed if the line order is reversed, so that
-Perl parses 'sub filename' first. 
+In this particular case the syntax error can be removed if the line order is
+reversed, so that Perl parses 'sub filename' first. 
 
 =item B<-spp=n>  or B<--space-prototype-paren=n>