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

Add generic example of std::ops::Sub in doc comments #43413

Merged
merged 1 commit into from
Jul 24, 2017

Conversation

mandeep
Copy link
Contributor

@mandeep mandeep commented Jul 22, 2017

This PR adds an example of using generics with std::ops::Sub and is a follow up of PR #41612 and is related to issue #29365. I also wanted to add examples to Mul and Div, but I think these two traits are already loaded with examples.

@rust-highfive
Copy link
Collaborator

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Jul 23, 2017

📌 Commit ae7b1f9 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Jul 24, 2017

⌛ Testing commit ae7b1f9 with merge 6e0dc54...

bors added a commit that referenced this pull request Jul 24, 2017
Add generic example of std::ops::Sub in doc comments

This PR adds an example of using generics with std::ops::Sub and is a follow up of PR #41612 and is related to issue #29365. I also wanted to add examples to Mul and Div, but I think these two traits are already loaded with examples.
@bors
Copy link
Contributor

bors commented Jul 24, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 6e0dc54 to master...

@bors bors merged commit ae7b1f9 into rust-lang:master Jul 24, 2017
@mandeep mandeep deleted the ops-generics branch July 24, 2017 02:57
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