From 47db8deff6b50512d1c6e702d4df6bd9027efe04 Mon Sep 17 00:00:00 2001 From: Rahiel Kasim Date: Tue, 26 Jul 2016 11:14:46 +0200 Subject: [PATCH] doc/book/trait-objects: remove empty lines at start of examples --- src/doc/book/trait-objects.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/doc/book/trait-objects.md b/src/doc/book/trait-objects.md index b31a34a0425..b1aee579aab 100644 --- a/src/doc/book/trait-objects.md +++ b/src/doc/book/trait-objects.md @@ -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(); } -- 2.44.0