-
Notifications
You must be signed in to change notification settings - Fork 13k
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
API Docs: convert #29349
Comments
Also add a note about the necessary simplicity of the conversion. Related issue: rust-lang#29349
Also add a note about the necessary simplicity of the conversion. Related issue: #29349 r? @steveklabnik
I am happy to mentor anyone who wants to tackle this issue. |
I would be keen to give this one a go @steveklabnik I'm interested in understanding this section better. |
Awesome, @maccoda ! Let me know if I can help you help me in any way 😄 |
Hey @steveklabnik ,
It turns out all of the traits have the examples above the generic implementations. Should I move the generic implementations above the examples for all of the traits?
Thanks 😄 |
Hey @maccoda !
Yes, that'd be great!
Ideally, we'd have both: one extremely simple example for people to be able to copy/paste, and one more realistic example. Feel free to submit one or both 😄
yes it's tough!
The second edition of the book does not have that chapter; synchronizing these API docs is the right way to go 👍 |
OK great 😄 I will hopefully have something in today to start picking apart. 👍 |
Hey @steveklabnik , Thanks again! 😄 |
Standard library docs are wrapped to 80 characters. :)
…On Sat, Apr 1, 2017 at 1:22 AM, Dylan Maccora ***@***.***> wrote:
Hey @steveklabnik </~https://github.com/steveklabnik> ,
I had a look at the RFC
</~https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md#appendix-a-full-conventions-text>
mentioned in the contribution guide and couldn't find anything on the
guidelines for line length. I only ask as one of the Travis builds failed
due to the line exceeding 100 chars, so was wondering what I should be
aiming for.
Thanks again! 😄
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#29349 (comment)>,
or mute the thread
</~https://github.com/notifications/unsubscribe-auth/AABsiphLIB5c0gFq2Joe5J1f1_iLAzyQks5rrd8qgaJpZM4GV1Nw>
.
|
API docs: Convert Clean up of the convert module documentation following points in rust-lang#29349
This is now done! 🎊 |
Part of #29329
http://doc.rust-lang.org/std/convert/
Here's what needs to be done to close out this issue:
AsMut
should compare itself toAsRef
, and should show a sample implementation.AsRef
needs far better docs, as it is one of the most misunderstood traits in Rust. Specifically it should talk about its relationship withBorrow
. It also needs an example implementation.From
needs a lot of work; it should talk about its usage in?
, it should show an example implementation, and general improvement.Into
is mostly fine, but "generic impls" should say "implementations" and it should be above examples.The text was updated successfully, but these errors were encountered: