about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2016-07-26 17:21:14 -0400
committerGitHub <noreply@github.com>2016-07-26 17:21:14 -0400
commitd64de045c96ccd8fd3e956f6b04e999563198ce2 (patch)
tree4c1efd2da5a162c3f5784be0fed798c68b91e409 /src
parent326444dea624d341ba9e70945539b11a6a4354b9 (diff)
parent47db8deff6b50512d1c6e702d4df6bd9027efe04 (diff)
downloadrust-d64de045c96ccd8fd3e956f6b04e999563198ce2.tar.gz
rust-d64de045c96ccd8fd3e956f6b04e999563198ce2.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/doc/book/trait-objects.md2
1 files changed, 0 insertions, 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();
 }