Skip to content

Commit

Permalink
Rollup merge of #35043 - rahiel:patch-1, r=nikomatsakis
Browse files Browse the repository at this point in the history
doc/book/trait-objects: remove empty lines at start of examples

I think it looks better without them.
  • Loading branch information
steveklabnik authored Jul 26, 2016
2 parents 326444d + 47db8de commit d64de04
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/doc/book/trait-objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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();
}
Expand Down

0 comments on commit d64de04

Please sign in to comment.