Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added semi-colons so that examples work in cut'n'paste situation
  • Loading branch information
lizmat committed Apr 9, 2013
1 parent 18c2444 commit 5ca8187
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S03-operators.pod
Expand Up @@ -3110,7 +3110,7 @@ A function predeclared with an empty signature is considered 0-ary
at run time but is still parsed as a list prefix operator, and looks
for a following argument list, which it may reject at run time.

my sub foo () {...}
my sub foo () {...};
foo; # okay
foo(); # okay
foo (),(),(); # okay
Expand All @@ -3120,8 +3120,8 @@ The compiler is allowed to complain about anything it knows cannot
succeed at run time. Note that a multi may contain () as one
of its signatures, however:

my multi foo () {...}
my multi foo ($x) {...}
my multi foo () {...};
my multi foo ($x) {...};
foo; # okay
foo(); # okay
foo (),(),(); # okay
Expand Down

0 comments on commit 5ca8187

Please sign in to comment.