Skip to content

Commit 47db8de

Browse files
authored
doc/book/trait-objects: remove empty lines at start of examples
1 parent 9316ae5 commit 47db8de

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/doc/book/trait-objects.md

-2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ dispatch with trait objects by casting:
123123
# trait Foo { fn method(&self) -> String; }
124124
# impl Foo for u8 { fn method(&self) -> String { format!("u8: {}", *self) } }
125125
# impl Foo for String { fn method(&self) -> String { format!("string: {}", *self) } }
126-
127126
fn do_something(x: &Foo) {
128127
x.method();
129128
}
@@ -140,7 +139,6 @@ or by coercing:
140139
# trait Foo { fn method(&self) -> String; }
141140
# impl Foo for u8 { fn method(&self) -> String { format!("u8: {}", *self) } }
142141
# impl Foo for String { fn method(&self) -> String { format!("string: {}", *self) } }
143-
144142
fn do_something(x: &Foo) {
145143
x.method();
146144
}

0 commit comments

Comments
 (0)