Skip to content

docs: Attempt to clarify use of `where i32: ConvertTo<T> #29505

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 2, 2015

Conversation

rjbs
Copy link
Contributor

@rjbs rjbs commented Nov 1, 2015

I read this section a few times before even having a guess what
was meant, then consulted IRC for confirmation. It may be that I
was thick-headed, but I think this is a useful addition.

@@ -400,7 +400,9 @@ fn inverse<T>() -> T

This shows off the additional feature of `where` clauses: they allow bounds
where the left-hand side is an arbitrary type (`i32` in this case), not just a
plain type parameter (like `T`).
plain type parameter (like `T`). In this example, `i32` must implement
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change this to one space after the period? Thanks!

I read this section a few times before even having a guess what
was meant, then consulted IRC for confirmation.  It may be that I
was thick-headed, but I think this is a useful addition.
@rjbs
Copy link
Contributor Author

rjbs commented Nov 2, 2015

I have replaced two spaces after full stops with single spaces!

@steveklabnik
Copy link
Member

@bors: r+ rollup

@bors
Copy link
Collaborator

bors commented Nov 2, 2015

📌 Commit 21a0c40 has been approved by steveklabnik

@steveklabnik
Copy link
Member

Thank you!

@bors
Copy link
Collaborator

bors commented Nov 2, 2015

⌛ Testing commit 21a0c40 with merge 7caf54b...

bors added a commit that referenced this pull request Nov 2, 2015
I read this section a few times before even having a guess what
was meant, then consulted IRC for confirmation.  It may be that I
was thick-headed, but I think this is a useful addition.
@bors bors merged commit 21a0c40 into rust-lang:master Nov 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants