Skip to content

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