Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/librustc/diagnostics.rs
Original file line number Diff line number Diff line change
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"that implements the Foo trait" is probably the right... tense..?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is correct, and it sounds better anyways... having which and that in a sentence sounds awkward.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really agree; but I do agree that this is unambiguously an improvement over the old wording.

fn some_func<T: Foo>(foo: T) {
foo.bar();
}
Expand Down