develooper Front page | perl.perl6.language | Postings from July 2006

[svn:perl6-synopsis] r9814 - doc/trunk/design/syn

From:
larry
Date:
July 5, 2006 16:27
Subject:
[svn:perl6-synopsis] r9814 - doc/trunk/design/syn
Message ID:
20060705232705.D280CCBDB8@x12.develooper.com
Author: larry
Date: Wed Jul  5 16:27:04 2006
New Revision: 9814

Modified:
   doc/trunk/design/syn/S04.pod

Log:
bracket mismatch spotted by TreyHarris++


Modified: doc/trunk/design/syn/S04.pod
==============================================================================
--- doc/trunk/design/syn/S04.pod	(original)
+++ doc/trunk/design/syn/S04.pod	Wed Jul  5 16:27:04 2006
@@ -763,8 +763,8 @@
 the start of a statement.  To embed a statement in an expression you
 must use something like C<do {...}> or C<try {...}>.
 
-    $x =  do { given $foo { when 1 {2} when 3 {4} } + $bar;
-    $x = try { given $foo { when 1 {2} when 3 {4} } + $bar;
+    $x =  do { given $foo { when 1 {2} when 3 {4} }} + $bar;
+    $x = try { given $foo { when 1 {2} when 3 {4} }} + $bar;
 
 Just because there's a C<< statement_control:<BEGIN> >> does not preclude us from
 also defining a C<< prefix:<BEGIN> >> that I<can> be used within an expression:



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About