diff options
| author | mdinger <mdinger.bugzilla@gmail.com> | 2014-04-30 09:10:15 -0400 |
|---|---|---|
| committer | mdinger <mdinger.bugzilla@gmail.com> | 2014-04-30 09:10:15 -0400 |
| commit | af0dd16b1bf05f0ef671f6c6eea8fa1627015d88 (patch) | |
| tree | 2f99aad052a9142b41a4aa695071d57791f3b5ea | |
| parent | f7d2d5876c4d26dd5941c723aad2fc53c6fcc9aa (diff) | |
| download | rust-af0dd16b1bf05f0ef671f6c6eea8fa1627015d88.tar.gz rust-af0dd16b1bf05f0ef671f6c6eea8fa1627015d88.zip | |
Fix typo
| -rw-r--r-- | src/doc/tutorial.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md index eca765f9b9f..bd1e9b27ccb 100644 --- a/src/doc/tutorial.md +++ b/src/doc/tutorial.md @@ -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. |
