Rollup merge of #35043 - rahiel:patch-1, r=nikomatsakis

doc/book/trait-objects: remove empty lines at start of examples

I think it looks better without them.
This commit is contained in:
Steve Klabnik 2016-07-26 17:21:14 -04:00 committed by GitHub
commit d64de045c9

View 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();
}