Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mdinger committed Apr 30, 2014
1 parent f7d2d58 commit af0dd16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/tutorial.md
Expand Up @@ -1736,7 +1736,7 @@ let closure = || -> () { println!("{}", x) }; // can capture enclosing scope
// `fun_arg` is an invalid definition
fn fun_arg (arg: int) -> () { println!("{}", arg + x) }; // cannot capture enclosing scope
let closure_arg = |arg: int| -> () { println!("{}", arg + x) }; // Can capture enclosing scope
let closure_arg = |arg: int| -> () { println!("{}", arg + x) }; // can capture enclosing scope
// ^
// Requires a type because the implementation needs to know which `+` to use.
// In the future, the implementation may not need the help.
Expand Down

0 comments on commit af0dd16

Please sign in to comment.