Skip to content

Commit 5081f73

Browse files
author
Tage Johansson
committed
fix documentation errors
1 parent 280bee5 commit 5081f73

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

compiler/rustc_index/src/bit_set/dense_bit_set.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ use crate::Idx;
2626
/// variant for the empty set. In this case, the domain size is stored inline along with a few
2727
/// bits indicating that the set is empty. Allocation is deferred until needed, such as on
2828
/// the first insert or remove operation. This avoids the need to wrap a lazily initialised bit set
29-
/// in a [`OnceCell`] or an [`Option`]—you can simply create an empty set and populate it if needed.
29+
/// in a [`OnceCell`](std::cell::OnceCell) or an [`Option`]—you can simply create an empty set and
30+
/// populate it if needed.
3031
///
3132
/// Note 1: Since this bitset is dense, if your domain is large and/or relatively homogeneous (e.g.
32-
/// long runs of set or unset bits), it may be more efficient to use a [MixedBitSet] or an
33-
/// [IntervalSet](crate::interval::IntervalSet), which are better suited for sparse or highly
33+
/// long runs of set or unset bits), it may be more efficient to use a
34+
/// [`MixedBitSet`](crate::bit_set::MixedBitSet) or an
35+
/// [`IntervalSet`](crate::interval::IntervalSet), which are better suited for sparse or highly
3436
/// compressible domains.
3537
///
3638
/// Note 2: Use [`GrowableBitSet`] if you require support for resizing after creation.

0 commit comments

Comments
 (0)