Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add doctests for union, diff, sym_diff, and intersection.
Add a rustdoc test for union to exhibit how it is used. There is already a test for union in the test namespace, but this commit adds a doctest that will appear in the rustdocs. Add a doctest for the difference function. Add a doctest for the symmetric_difference function. Add a doctest for the intersection function. Update the union et al. doctests based on @gankro's comments. Make the union et al. doctests a bit more readable.
- Loading branch information
1 parent
3a325c6
commit 451cc7e
Showing
1 changed file
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
451cc7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at jbranchaud@451cc7e
451cc7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging jbranchaud/rust/add-btree-set-doctests = 451cc7e into auto
451cc7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jbranchaud/rust/add-btree-set-doctests = 451cc7e merged ok, testing candidate = 1e835cc
451cc7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/2598
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/2594
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/2586
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/2594
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/2588
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/2586
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/2586
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/2590
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/2583
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/2582
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2585
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/2247
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/2244
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/2249
success: http://buildbot.rust-lang.org/builders/auto-win-64-opt/builds/1086
success: http://buildbot.rust-lang.org/builders/auto-win-64-nopt-t/builds/1080
success: http://buildbot.rust-lang.org/builders/auto-win-64-nopt-c/builds/1076
451cc7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 1e835cc