about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOri Avtalion <ori@avtalion.name>2015-12-14 00:12:17 +0200
committerOri Avtalion <ori@avtalion.name>2015-12-14 23:15:21 +0200
commit37b8e22c681a092510e150e5eb5268e749a5a34b (patch)
tree13b87d0dc7b798aba9efac093ba04624548ac2ff
parent50a02b43ba17bf1547b7124dff909604e967a7f6 (diff)
downloadrust-37b8e22c681a092510e150e5eb5268e749a5a34b.tar.gz
rust-37b8e22c681a092510e150e5eb5268e749a5a34b.zip
Add links in BTreeSet docs
-rw-r--r--src/libcollections/btree/set.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/libcollections/btree/set.rs b/src/libcollections/btree/set.rs
index a2c09c36795..12d3465e518 100644
--- a/src/libcollections/btree/set.rs
+++ b/src/libcollections/btree/set.rs
@@ -26,12 +26,17 @@ use Bound;
 
 /// A set based on a B-Tree.
 ///
-/// See BTreeMap's documentation for a detailed discussion of this collection's performance
+/// See [`BTreeMap`]'s documentation for a detailed discussion of this collection's performance
 /// benefits and drawbacks.
 ///
 /// It is a logic error for an item to be modified in such a way that the item's ordering relative
-/// to any other item, as determined by the `Ord` trait, changes while it is in the set. This is
-/// normally only possible through `Cell`, `RefCell`, global state, I/O, or unsafe code.
+/// to any other item, as determined by the [`Ord`] trait, changes while it is in the set. This is
+/// normally only possible through [`Cell`], [`RefCell`], global state, I/O, or unsafe code.
+///
+/// [`BTreeMap`]: ../struct.BTreeMap.html
+/// [`Ord`]: ../../core/cmp/trait.Ord.html
+/// [`Cell`]: ../../std/cell/struct.Cell.html
+/// [`RefCell`]: ../../std/cell/struct.RefCell.html
 #[derive(Clone, Hash, PartialEq, Eq, Ord, PartialOrd)]
 #[stable(feature = "rust1", since = "1.0.0")]
 pub struct BTreeSet<T> {