Skip to content

Commit f79571f

Browse files
committed
Remove extra semicolons
1 parent af0dd16 commit f79571f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)