Skip to content

Commit

Permalink
doc: make explanation easier to undrstand
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang committed Jul 11, 2015
1 parent 1b28ffa commit ef8c377
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/librustc/diagnostics.rs
Expand Up @@ -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();
}
Expand Down

0 comments on commit ef8c377

Please sign in to comment.