]> git.lizzy.rs Git - rust.git/commitdiff
doc/book/trait-objects: remove empty lines at start of examples
authorRahiel Kasim <rahielkasim@gmail.com>
Tue, 26 Jul 2016 09:14:46 +0000 (11:14 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Jul 2016 09:14:46 +0000 (11:14 +0200)
src/doc/book/trait-objects.md

index b31a34a0425a489f246f2616b499a93cf4f8c918..b1aee579aabc26ae560c72e7187532fc0fd95c00 100644 (file)
@@ -123,7 +123,6 @@ dispatch with trait objects by casting:
 # trait Foo { fn method(&self) -> String; }
 # impl Foo for u8 { fn method(&self) -> String { format!("u8: {}", *self) } }
 # impl Foo for String { fn method(&self) -> String { format!("string: {}", *self) } }
-
 fn do_something(x: &Foo) {
     x.method();
 }
@@ -140,7 +139,6 @@ or by coercing:
 # trait Foo { fn method(&self) -> String; }
 # impl Foo for u8 { fn method(&self) -> String { format!("u8: {}", *self) } }
 # impl Foo for String { fn method(&self) -> String { format!("string: {}", *self) } }
-
 fn do_something(x: &Foo) {
     x.method();
 }