doc: make explanation easier to undrstand

This commit is contained in:
Tshepang Lekhonkhobe 2015-07-11 23:01:30 +02:00
parent 1b28ffa521
commit ef8c3775af

View File

@ -791,8 +791,7 @@ trait Foo {
fn bar(&self);
}
// we now declare a function which takes an object with Foo trait implemented
// as parameter
// we now declare a function which takes an object implementing the Foo trait
fn some_func<T: Foo>(foo: T) {
foo.bar();
}