-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
Change headers in Traits section of the book #29194
Change headers in Traits section of the book #29194
Conversation
r? @Manishearth (rust_highfive has picked a reviewer for you, use r? to override) |
Looking around the docs in the source, I do see the term bounds being used a few times to refer to constraints on types, so maybe this is a widely accepted term I'm unfamiliar with? At the very least, I think it would be helpful to elaborate/clarify this somewhere in the Traits chapter of the book. |
The term used for this is bounds, constraints is rarely used. We could, however, explain what it means somewhere. Or add it to the reference. @steveklabnik thoughts? |
"Bounds" is the more specific term that people use, yes. Maybe adding it to the Glossary would make sense? |
👍 |
That sounds reasonable to me. I had a suspicion it might be the correct term, but I wasn't sure. Shall I update this PR to add it to the glossary instead? |
Yes! 😄 |
I've updated this PR to instead add bounds to the glossary. I've also tried to make traits.md a bit more consistent at using bounds as the preferred terminology, as constraint was previously used more commonly in that chapter. |
@bors r+ rollup |
📌 Commit 00c1419 has been approved by |
…=Manishearth It's possible that there is some meaning I'm not grasping from the headers "Traits bounds for generic functions" and "Traits bounds for generic structs", but they seem to me like they could be clearer and more grammatically correct.
It's possible that there is some meaning I'm not grasping from the headers "Traits bounds for generic functions" and "Traits bounds for generic structs", but they seem to me like they could be clearer and more grammatically correct.