diff options
| author | Corey Richardson <corey@octayn.net> | 2013-12-06 12:13:10 -0500 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2013-12-10 09:43:36 -0500 |
| commit | 888144c98d43d62e839307219346398660ddf546 (patch) | |
| tree | 7188d412264899c50634a54ebf2934ea09c9b9e2 /doc/tutorial.md | |
| parent | b5122c52aefd05d4485864b2b6e01f41ddfbc483 (diff) | |
| download | rust-888144c98d43d62e839307219346398660ddf546.tar.gz rust-888144c98d43d62e839307219346398660ddf546.zip | |
Function declaration takes pats, not exprs.
Diffstat (limited to 'doc/tutorial.md')
| -rw-r--r-- | doc/tutorial.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md index 5bd0d35895e..7478e5a70f7 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -820,7 +820,7 @@ declarations, such as `type`, functions can be declared both at the top level and inside other functions (or in modules, which we'll come back to [later](#crates-and-the-module-system)). The `fn` keyword introduces a function. A function has an argument list, which is a parenthesized -list of `expr: type` pairs separated by commas. An arrow `->` +list of `name: type` pairs separated by commas. An arrow `->` separates the argument list and the function's return type. ~~~~ |
