Skip to content

Fix var name in doc for ops.rs #18024

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

Closed
wants to merge 3 commits into from
Closed

Fix var name in doc for ops.rs #18024

wants to merge 3 commits into from

Conversation

phungleson
Copy link
Contributor

Make the doc more consistent & runnable.

  • Use _index instead of _rhs when appropriate.
  • Use _from and _to to avoid warning.
  • Remove unnecessary ::core::ops

Because var is provided as an index not a right hand side.
It shows error: failed to resolve. Maybe a missing `extern crate core`
anyway.
This to avoid warning: unused variable: `from`,
#[warn(unused_variable)] on by default.
@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (or someone else) soon.

bors added a commit that referenced this pull request Oct 18, 2014
Make the doc more consistent & runnable.

* Use `_index` instead of `_rhs` when appropriate.
* Use `_from` and `_to` to avoid warning.
* Remove unnecessary `::core::ops`
@bors bors closed this Oct 18, 2014
@phungleson phungleson deleted the fix-var-name-in-doc branch October 18, 2014 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants