-
Notifications
You must be signed in to change notification settings - Fork 13.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
Update rustdoc book to suggest using Termination trait instead of hidden ‘foo’ function #51183
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, but I have one tiny grammar thing. Thank you so much for doing this!
|
||
## Using `?` in doc tests | ||
|
||
A complete error handling is often not useful in your example, as it would add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change this slightly. This isn't wrong, but sounds a bit strange.
In your examples, handling all errors is not often useful, as it would add
Ping from triage @steveklabnik! This PR needs your review. |
Thank you! @bors: r+ rollup |
📌 Commit efa8de8 has been approved by |
🔒 Merge conflict |
@teiesti can you please rebase this PR on top of the latest master? |
Done. |
@steveklabnik this should be approved again. |
@bors: r+ rollup |
📌 Commit 089da06 has been approved by |
…=steveklabnik Update rustdoc book to suggest using Termination trait instead of hidden ‘foo’ function Closes rust-lang#50721. I suggest that someone double-checks my English since I am not a native speaker. r? @steveklabnik
Rollup of 7 pull requests Successful merges: - #50852 (Add doc comment to hiding portions of code example) - #51183 (Update rustdoc book to suggest using Termination trait instead of hidden ‘foo’ function) - #51255 (Fix confusing error message for sub_instant) - #51256 (Fix crate-name option in rustdoc) - #51308 (Check array indices in constant propagation) - #51343 (test: Ignore some problematic tests on sparc and sparc64) - #51358 (Tests that #39963 is fixed on MIR borrowck) Failed merges:
Closes #50721.
I suggest that someone double-checks my English since I am not a native speaker.
r? @steveklabnik