]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #19488 : jbranchaud/rust/add-btree-set-doctests, r=alexcrichton
authorbors <bors@rust-lang.org>
Sun, 7 Dec 2014 07:12:16 +0000 (07:12 +0000)
committerbors <bors@rust-lang.org>
Sun, 7 Dec 2014 07:12:16 +0000 (07:12 +0000)
There is already a test for `union` in the test namespace, but this commit adds a doctest that will appear in the rustdocs.

Someone on IRC said, *Write doctests!*, so here I am.

I am not sure this is the best way to demonstrate the behavior of the union function, so I am open to suggestions for improving this. If I am on the right track I'd be glad to include similar doctests for `intersection`, `difference`, etc.


Trivial merge