]> git.lizzy.rs Git - rust.git/commitdiff
Remove extra semicolons
authormdinger <mdinger.bugzilla@gmail.com>
Wed, 30 Apr 2014 13:29:53 +0000 (09:29 -0400)
committermdinger <mdinger.bugzilla@gmail.com>
Wed, 30 Apr 2014 13:29:53 +0000 (09:29 -0400)
src/doc/tutorial.md

index bd1e9b27ccb0dab81524f2c0a17b7c42141746a7..35655707fef50cc184d971e72d8f472387053eb7 100644 (file)
@@ -1731,11 +1731,11 @@ they try to access `x`:
 let x = 3;
 
 // `fun` is an invalid definition
-fn  fun       () -> () { println!("{}", x) }; // cannot capture enclosing scope
+fn  fun       () -> () { println!("{}", x) }  // cannot capture enclosing scope
 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
+fn  fun_arg       (arg: int) -> () { println!("{}", arg + x) }  // cannot 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.