Skip to content

Commit 888144c

Browse files
committed
Function declaration takes pats, not exprs.
1 parent b5122c5 commit 888144c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ declarations, such as `type`, functions can be declared both at the
820820
top level and inside other functions (or in modules, which we'll come
821821
back to [later](#crates-and-the-module-system)). The `fn` keyword introduces a
822822
function. A function has an argument list, which is a parenthesized
823-
list of `expr: type` pairs separated by commas. An arrow `->`
823+
list of `name: type` pairs separated by commas. An arrow `->`
824824
separates the argument list and the function's return type.
825825

826826
~~~~

0 commit comments

Comments
 (0)