File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -900,9 +900,10 @@ fn main() {}
900
900
901
901
### Functions
902
902
903
- A _ function item_ defines a sequence of [ statements] ( #statements ) and an
904
- optional final [ expression] ( #expressions ) , along with a name and a set of
905
- parameters. Functions are declared with the keyword ` fn ` . Functions declare a
903
+ A _ function item_ defines a sequence of [ statements] ( #statements ) and a
904
+ final [ expression] ( #expressions ) , along with a name and a set of
905
+ parameters. Other than a name, all these are optional.
906
+ Functions are declared with the keyword ` fn ` . Functions may declare a
906
907
set of * input* [ * variables* ] ( #variables ) as parameters, through which the caller
907
908
passes arguments into the function, and the * output* [ * type* ] ( #types )
908
909
of the value the function will return to its caller on completion.
You can’t perform that action at this time.
0 commit comments