Skip to content

Commit

Permalink
[subs-n-sigs] improve example, jnthn++; also move "Returning Results"…
Browse files Browse the repository at this point in the history
… section a bit up
  • Loading branch information
moritz committed Mar 28, 2010
1 parent f4b0b90 commit aba047d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/subs-n-sigs.pod
Expand Up @@ -210,7 +210,7 @@ appending a question mark to the parameter name:
say "I'd like a steak, $how";
}
order-steak();
order-steak('through');
order-steak('well done');

# without a defalt value
# TODO: come up with a good example
Expand All @@ -222,6 +222,7 @@ appending a question mark to the parameter name:

=head2 Slurpy Parameters

=head1 Returning Results

=head1 Working With Types

Expand All @@ -234,10 +235,6 @@ appending a question mark to the parameter name:

=head2 Type Captures


=head1 Returning Results


=head1 Captures

A signature can be viewed as a collection of parameters. Captures fill the
Expand Down

0 comments on commit aba047d

Please sign in to comment.