Skip to content

Commit

Permalink
reference: 3 of the 4 things mentioned here are optional
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang committed Sep 24, 2015
1 parent 07ca1ab commit 996bd9d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/doc/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -900,9 +900,10 @@ fn main() {}

### Functions

A _function item_ defines a sequence of [statements](#statements) and an
optional final [expression](#expressions), along with a name and a set of
parameters. Functions are declared with the keyword `fn`. Functions declare a
A _function item_ defines a sequence of [statements](#statements) and a
final [expression](#expressions), along with a name and a set of
parameters. Other than a name, all these are optional.
Functions are declared with the keyword `fn`. Functions may declare a
set of *input* [*variables*](#variables) as parameters, through which the caller
passes arguments into the function, and the *output* [*type*](#types)
of the value the function will return to its caller on completion.
Expand Down

0 comments on commit 996bd9d

Please sign in to comment.