Skip to content

Commit ef8c377

Browse files
committed
doc: make explanation easier to undrstand
1 parent 1b28ffa commit ef8c377

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc/diagnostics.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,8 +791,7 @@ trait Foo {
791791
fn bar(&self);
792792
}
793793
794-
// we now declare a function which takes an object with Foo trait implemented
795-
// as parameter
794+
// we now declare a function which takes an object implementing the Foo trait
796795
fn some_func<T: Foo>(foo: T) {
797796
foo.bar();
798797
}

0 commit comments

Comments
 (0)