doc: make explanation easier to undrstand
This commit is contained in:
parent
1b28ffa521
commit
ef8c3775af
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user