Skip to content

Commit af0dd16

Browse files
committed
Fix typo
1 parent f7d2d58 commit af0dd16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1736,7 +1736,7 @@ let closure = || -> () { println!("{}", x) }; // can capture enclosing scope
17361736
17371737
// `fun_arg` is an invalid definition
17381738
fn fun_arg (arg: int) -> () { println!("{}", arg + x) }; // cannot capture enclosing scope
1739-
let closure_arg = |arg: int| -> () { println!("{}", arg + x) }; // Can capture enclosing scope
1739+
let closure_arg = |arg: int| -> () { println!("{}", arg + x) }; // can capture enclosing scope
17401740
// ^
17411741
// Requires a type because the implementation needs to know which `+` to use.
17421742
// In the future, the implementation may not need the help.

0 commit comments

Comments
 (0)