Skip to content
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

Modify docs to put error conditions into `Errors` sections #314

Closed
brson opened this Issue May 4, 2017 · 5 comments

Comments

Projects
None yet
6 participants
@brson
Copy link
Contributor

brson commented May 4, 2017

Per rust documentation RFC.

@brson brson added easy labels May 4, 2017

@brson brson referenced this issue May 4, 2017

Closed

Tracking issue for crate evaluation #319

17 of 19 tasks complete
@llompartg

This comment has been minimized.

Copy link

llompartg commented May 9, 2017

Hey brson, first time contributing and really new to rust.

I would be happy to help out with this, is this still open? Also I'm afraid I'll need a bit of more info as per which RFC you mean and what exactly the needed changes are.

Thanks

@dtolnay

This comment has been minimized.

Copy link

dtolnay commented May 12, 2017

@llompartg thanks, this is still open. He is referring to this guideline.

@brson

This comment has been minimized.

Copy link
Contributor Author

brson commented May 13, 2017

Awesome @llompartg! @dtolnay has the link.

Basically, every method that returns errors, instead of the error condition being described in the main body of the docs (or not described at all) there should be a section like

# Errors

Returns an error when...
@rap2hpoutre

This comment has been minimized.

Copy link
Contributor

rap2hpoutre commented Jul 10, 2017

@llompartg I have just submitted a PR. If you still want to work on this issue, I can close it! (since there is no activity for a while now, so I thought I can submit something). As you want!

@brson I still need some mentoring, I'm not sure about my PR quality.

@behnam behnam closed this Jul 10, 2017

@behnam behnam reopened this Jul 10, 2017

bors-servo added a commit that referenced this issue Jul 13, 2017

Auto merge of #379 - rap2hpoutre:master, r=SimonSapin
Add error documentation on parse function

See: #314

This is just a try, feel free to close or comment if it's not good. I just submit one error documentation because I want to clearly understand what's the pattern before submitting more documentation: I still have to learn, so I prefer just trying on one function for now (but I can help after that)

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/379)
<!-- Reviewable:end -->
@brson

This comment has been minimized.

Copy link
Contributor Author

brson commented Jul 15, 2017

@rap2hpoutre looks like your pr was merged. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.