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.
2 parents 77d2a11 + 58125e5 commit 74fde5eCopy full SHA for 74fde5e
src/libcollections/btree/set.rs
@@ -65,6 +65,14 @@ pub struct UnionItems<'a, T:'a> {
65
66
impl<T: Ord> BTreeSet<T> {
67
/// Makes a new BTreeSet with a reasonable choice of B.
68
+ ///
69
+ /// # Examples
70
71
+ /// ```
72
+ /// use std::collections::BTreeSet;
73
74
+ /// let mut set: BTreeSet<int> = BTreeSet::new();
75
76
#[unstable = "matches collection reform specification, waiting for dust to settle"]
77
pub fn new() -> BTreeSet<T> {
78
BTreeSet { map: BTreeMap::new() }
0 commit comments