From 996bd9d0d6b7887e4720d5a595ce9fd2c6a82c80 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Thu, 24 Sep 2015 08:18:00 +0200 Subject: [PATCH] reference: 3 of the 4 things mentioned here are optional --- src/doc/reference.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/doc/reference.md b/src/doc/reference.md index 83849574260..7cae6a515cb 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -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. -- 2.44.0