Skip to content

Commit 7f78191

Browse files
committed
---
yaml --- r: 115428 b: refs/heads/try c: f79571f h: refs/heads/master v: v3
1 parent 5072d08 commit 7f78191

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: bee4e6adac17f87b1cdc26ab69f8c0f5d82575a3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ec0258a381b88b5574e3f8ce72ae553ac3a574b7
5-
refs/heads/try: af0dd16b1bf05f0ef671f6c6eea8fa1627015d88
5+
refs/heads/try: f79571f51355826308573f713357eb9e33be665a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/doc/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,11 +1731,11 @@ they try to access `x`:
17311731
let x = 3;
17321732
17331733
// `fun` is an invalid definition
1734-
fn fun () -> () { println!("{}", x) }; // cannot capture enclosing scope
1734+
fn fun () -> () { println!("{}", x) } // cannot capture enclosing scope
17351735
let closure = || -> () { println!("{}", x) }; // can capture enclosing scope
17361736
17371737
// `fun_arg` is an invalid definition
1738-
fn fun_arg (arg: int) -> () { println!("{}", arg + x) }; // cannot capture enclosing scope
1738+
fn fun_arg (arg: int) -> () { println!("{}", arg + x) } // cannot capture enclosing scope
17391739
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.

0 commit comments

Comments
 (0)