-
Notifications
You must be signed in to change notification settings - Fork 13.3k
s/try!/?/g in documentation examples #38644
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
Comments
am curious why the downvotes |
@tshepang I'm not convinced that indiscriminately replacing |
Sorry if I'm out of place in commenting as a total stranger in the Rust repo, but I'm down to help--though I can see why it's a bit on the fence for some. I feel if the solution to this issue (either sticking to As I said, I would love to help if it is needed and will start on a PR, but I feel as if more discussion could only make a resolution more robust here. |
@josephpd3 #38648 is already a PR, so I think we have it covered. Reviewing that would be helpful though! |
@steveklabnik gotcha! Wasn't sure if those changes to |
…tation-examples, r=pnkfelix,steveklabnik,frewsxcvx libstd: replace all `try!` with `?` in documentation examples See #38644. For the record, I used the following Perl one-liner and then manually fixed a couple of things it got wrong: $ perl -p -i -e 's#(///.*)try!\((.*)\)#$1$2?#' src/libstd/**/*.rs
@steveklabnik did #38648 get them all or is this still open to get worked on? |
I think this got all of them; if you find an example using |
Now that
?
is stable, documentation should be updated to use it instead oftry!
.try!
's docs should probably have a once-over, as well.PRs to do this in any amount will be welcome, even just one examples!
The text was updated successfully, but these errors were encountered: