Skip to content

Commit 3c30c79

Browse files
committed
functions.md: one sentence per line for the first section
1 parent 9f0de65 commit 3c30c79

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/items/functions.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,11 @@
4343
> in an associated function of a [trait item] in the 2015 edition.
4444
4545
A _function_ consists of a [block], along with a name and a set of parameters.
46-
Other than a name, all these are optional. Functions are declared with the
47-
keyword `fn`. Functions may declare a set of *input* [*variables*][variables]
48-
as parameters, through which the caller passes arguments into the function, and
49-
the *output* [*type*][type] of the value the function will return to its caller
50-
on completion.
51-
52-
When referred to, a _function_ yields a first-class *value* of the
53-
corresponding zero-sized [*function item type*], which
54-
when called evaluates to a direct call to the function.
46+
Other than a name, all these are optional.
47+
Functions are declared with the keyword `fn`.
48+
Functions may declare a set of *input* [*variables*][variables] as parameters, through which the caller passes arguments into the function, and the *output* [*type*][type] of the value the function will return to its caller on completion.
49+
50+
When referred to, a _function_ yields a first-class *value* of the corresponding zero-sized [*function item type*], which when called evaluates to a direct call to the function.
5551

5652
For example, this is a simple function:
5753
```rust

0 commit comments

Comments
 (0)