Skip to content

Commit 92a844a

Browse files
committed
Updated documentation for lock-free arena
1 parent 4def624 commit 92a844a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/support/arena/src/lock_free_arena.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ use core::{
55
ops::{Index, IndexMut},
66
};
77

8-
/// A index-based arena.
8+
/// A lock-free index-based arena.
99
///
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
1111
/// strongly-typed index ([`Idx<K, V>`]). The index not only represents the position
1212
/// in the underlying vector but also leverages the type system to prevent accidental misuse
1313
/// across different arenas.
@@ -70,7 +70,7 @@ impl<K: Id, V> LockFreeArena<K, V> {
7070
/// # Panics
7171
///
7272
/// 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.
7474
///
7575
/// # Examples
7676
///
@@ -86,7 +86,7 @@ impl<K: Id, V> LockFreeArena<K, V> {
8686
self.try_alloc(value).expect("arena is full")
8787
}
8888

89-
/// Fallible version of [`Arena::alloc`].
89+
/// Fallible version of [`LockFreeArena::alloc`].
9090
///
9191
/// This method returns `None` if the arena is full.
9292
#[inline]
@@ -104,8 +104,8 @@ impl<K: Id, V> LockFreeArena<K, V> {
104104
/// # Examples
105105
///
106106
/// ```
107-
/// # use arena::Arena;
108-
/// let mut arena = Arena::<u32, _>::new();
107+
/// # use arena::LockFreeArena;
108+
/// let mut arena = LockFreeArena::<u32, _>::new();
109109
///
110110
/// let idx1 = arena.alloc(20);
111111
/// let idx2 = arena.alloc(40);

0 commit comments

Comments
 (0)