We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9316ae5 commit 47db8deCopy full SHA for 47db8de
src/doc/book/trait-objects.md
@@ -123,7 +123,6 @@ dispatch with trait objects by casting:
123
# trait Foo { fn method(&self) -> String; }
124
# impl Foo for u8 { fn method(&self) -> String { format!("u8: {}", *self) } }
125
# impl Foo for String { fn method(&self) -> String { format!("string: {}", *self) } }
126
-
127
fn do_something(x: &Foo) {
128
x.method();
129
}
@@ -140,7 +139,6 @@ or by coercing:
140
139
141
142
143
144
145
146
0 commit comments