Skip to content

Commit

Permalink
cleanup from last edit
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrowder committed Dec 11, 2016
1 parent de5f160 commit 36e737b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/Type/Signature.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,9 @@ prefix(C-like) form can be used too. Although all the ways are valid,
the C<-->> form is preferred for several reasons:
(1) it can handle constant values while the others can't;
(2) for consistency, it is the only form accepted on this site; and
(3) the C<returns> form is planned for future removal.
(3) the C<returns> form is planned for future removal.
recommended differs from all others: it can
handle constant values, while others don't.
The following illustrates how to write a signature returning a constant value:
=begin code :skip-test
my 42 sub bad-answer {}; # This will fail.
Expand Down

0 comments on commit 36e737b

Please sign in to comment.