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 a doctest for BTreeMap's iter method. #19592

Merged
merged 1 commit into from
Dec 9, 2014

Conversation

jbranchaud
Copy link
Contributor

I'm interested in including doctests for BTreeMap's iter_mut and into_iter methods in this PR as well, but I am not sure of the best way to demonstrate/test what they do for the doctests.

@Gankra
Copy link
Contributor

Gankra commented Dec 6, 2014

You can check out the other collections for what they do (Vec has an example for into_iter).

For iter_mut you could demonstrating mutating the contents through the references. Something simple like increasing every number by one or something, maybe?

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Dec 9, 2014
I'm interested in including doctests for `BTreeMap`'s `iter_mut` and `into_iter` methods in this PR as well, but I am not sure of the best way to demonstrate/test what they do for the doctests.
@bors bors merged commit 9cb26e2 into rust-lang:master Dec 9, 2014
@jbranchaud jbranchaud deleted the add-btreemap-iter-doctest branch December 10, 2014 03:40
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