We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffc1118 commit 58125e5Copy full SHA for 58125e5
src/libcollections/btree/set.rs
@@ -64,6 +64,14 @@ pub struct UnionItems<'a, T:'a> {
64
65
impl<T: Ord> BTreeSet<T> {
66
/// Makes a new BTreeSet with a reasonable choice of B.
67
+ ///
68
+ /// # Examples
69
70
+ /// ```
71
+ /// use std::collections::BTreeSet;
72
73
+ /// let mut set: BTreeSet<int> = BTreeSet::new();
74
75
#[unstable = "matches collection reform specification, waiting for dust to settle"]
76
pub fn new() -> BTreeSet<T> {
77
BTreeSet { map: BTreeMap::new() }
0 commit comments