-
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: env #29351
Comments
Seems the docs are all good here. |
There's still a bunch to do here; the module documentation is very sparse, not everything has examples, not all types are linked correctly. |
I'll try to look for the missing ones then. |
I am happy to mentor anyone who wants to tackle this issue. |
I'd like to work on this one. Here are some ideas:
@steveklabnik Maybe you have more ideas for a checklist? Thanks! |
@mp4096 ah yes, I don't know how I missed this one for the checklist! Those all seem like good changes. Ill try to come up with my own list sometime soonish, but until then, PRs for any/all of those things would be great 👍 |
I wouldn't mind lending a hand here either. |
TBH I'm having a block here. Help would be greatly appreciated! |
Alright let's give this a go then 👍 |
This text:
See these iterators for example: |
Perfect. Thank you. |
Improving std::env docs Addresses rust-lang#29351. Hopefully this addresses the following points: > - iterators should use the standard iterator boilerplate like https://doc.rust-lang.org/std/iter/struct.Map.html, this applies to all structs except for JoinPathsError > - JoinPathsError should properly link the function it comes from and use language similar to https://doc.rust-lang.org/std/io/struct.Error.html > - same wording issues with VarError > - functions need to ensure linkage to things they refer to in their descriptions > - Explain the difference between `os` and non-`os` structs and methods
@steveklabnik I am definitely keen to help close this off. What points are remaining to be addressed? |
Hey @maccoda , thanks for all the stuff you've done so far 😄
That actually looks like it, I think you got the rest of them! Do you want to knock those out? |
No worries at all @steveklabnik. Easy done I will target to get them done by the end of the the weekend! 😄 |
@steveklabnik I am just looking at the This what we currently have for
This appears to have the general boilerplate for the remaining aspects I believe of:
|
Yeah, basically I really like the consistency of having the exact same language everywhere. So a sort of "template" is
where the So it'd be turning
into
This is extremely nitpicky, but I think this kind of detail-oriented polish takes the docs from 👍 to 💯 |
No this is good, always easier to produce good documentation when there is a template. Will have to note this one down somewhere to remember 😄 |
We do need better docs for writing docs.... ha! |
…abnik env docs completion. Should be closing rust-lang#29351 with the alignment of the iterators to the template.
Haha! Been keeping a reference for myself! 😄 |
This was closed by #42579 |
Part of #29329
http://doc.rust-lang.org/std/env/
JoinPathsError
JoinPathsError
should properly link the function it comes from and use language similar to https://doc.rust-lang.org/std/io/struct.Error.htmlVarError
The text was updated successfully, but these errors were encountered: