Skip to content

Commit afe16ae

Browse files
committed
Rollup merge of #26976 - tshepang:more-simple-explanation, r=gankro
That sentence make me read it a few times before properly understanding it
2 parents dcc64d1 + ef8c377 commit afe16ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc/diagnostics.rs

+1-2
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)