Skip to content

Commit 8d9df99

Browse files
committed
Explicate what "Rc" and "Arc" stand for.
1 parent 8f66faf commit 8d9df99

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/liballoc/arc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ use heap::deallocate;
4242
/// necessarily) at _exactly_ `MAX_REFCOUNT + 1` references.
4343
const MAX_REFCOUNT: usize = (isize::MAX) as usize;
4444

45-
/// A thread-safe reference-counting pointer.
45+
/// A thread-safe reference-counting pointer. "Arc" stands for "Atomically
46+
/// Reference Counted".
4647
///
4748
/// The type `Arc<T>` provides shared ownership of a value of type `T`,
4849
/// allocated in the heap. Invoking [`clone`][clone] on `Arc` produces

src/liballoc/rc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
#![allow(deprecated)]
1212

13-
//! Single-threaded reference-counting pointers.
13+
//! Single-threaded reference-counting pointers. "Rc" stands for "Reference
14+
//! Counted".
1415
//!
1516
//! The type [`Rc<T>`][`Rc`] provides shared ownership of a value of type `T`,
1617
//! allocated in the heap. Invoking [`clone`][clone] on [`Rc`] produces a new

0 commit comments

Comments
 (0)