We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1277666 + 58125e5 commit 0b1d9c0Copy full SHA for 0b1d9c0
src/libcollections/btree/set.rs
@@ -68,6 +68,14 @@ pub struct UnionItems<'a, T:'a> {
68
69
impl<T: Ord> BTreeSet<T> {
70
/// Makes a new BTreeSet with a reasonable choice of B.
71
+ ///
72
+ /// # Examples
73
74
+ /// ```
75
+ /// use std::collections::BTreeSet;
76
77
+ /// let mut set: BTreeSet<int> = BTreeSet::new();
78
79
#[unstable = "matches collection reform specification, waiting for dust to settle"]
80
pub fn new() -> BTreeSet<T> {
81
BTreeSet { map: BTreeMap::new() }
0 commit comments