@@ -5,9 +5,9 @@ use core::{
5
5
ops:: { Index , IndexMut } ,
6
6
} ;
7
7
8
- /// A index-based arena.
8
+ /// A lock-free index-based arena.
9
9
///
10
- /// [`Arena `] provides a mechanism to allocate objects and refer to them by a
10
+ /// [`LockFreeArena `] provides a mechanism to allocate objects and refer to them by a
11
11
/// strongly-typed index ([`Idx<K, V>`]). The index not only represents the position
12
12
/// in the underlying vector but also leverages the type system to prevent accidental misuse
13
13
/// across different arenas.
@@ -70,7 +70,7 @@ impl<K: Id, V> LockFreeArena<K, V> {
70
70
/// # Panics
71
71
///
72
72
/// Panics if the arena is full (i.e. if the number of elements exceeds `I::MAX`).
73
- /// If you hnadle this case, use [`Arena ::try_alloc`] instead.
73
+ /// If you hnadle this case, use [`LockFreeArena ::try_alloc`] instead.
74
74
///
75
75
/// # Examples
76
76
///
@@ -86,7 +86,7 @@ impl<K: Id, V> LockFreeArena<K, V> {
86
86
self . try_alloc ( value) . expect ( "arena is full" )
87
87
}
88
88
89
- /// Fallible version of [`Arena ::alloc`].
89
+ /// Fallible version of [`LockFreeArena ::alloc`].
90
90
///
91
91
/// This method returns `None` if the arena is full.
92
92
#[ inline]
@@ -104,8 +104,8 @@ impl<K: Id, V> LockFreeArena<K, V> {
104
104
/// # Examples
105
105
///
106
106
/// ```
107
- /// # use arena::Arena ;
108
- /// let mut arena = Arena ::<u32, _>::new();
107
+ /// # use arena::LockFreeArena ;
108
+ /// let mut arena = LockFreeArena ::<u32, _>::new();
109
109
///
110
110
/// let idx1 = arena.alloc(20);
111
111
/// let idx2 = arena.alloc(40);
0 commit comments