Skip to content

Commit 1af0cb1

Browse files
committed
Use single quotes, and doc the Rc struct itself.
1 parent 8d9df99 commit 1af0cb1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/liballoc/arc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +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. "Arc" stands for "Atomically
46-
/// Reference Counted".
45+
/// A thread-safe reference-counting pointer. 'Arc' stands for 'Atomically
46+
/// Reference Counted'.
4747
///
4848
/// The type `Arc<T>` provides shared ownership of a value of type `T`,
4949
/// allocated in the heap. Invoking [`clone`][clone] on `Arc` produces

src/liballoc/rc.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
#![allow(deprecated)]
1212

13-
//! Single-threaded reference-counting pointers. "Rc" stands for "Reference
14-
//! Counted".
13+
//! Single-threaded reference-counting pointers. 'Rc' stands for 'Reference
14+
//! Counted'.
1515
//!
1616
//! The type [`Rc<T>`][`Rc`] provides shared ownership of a value of type `T`,
1717
//! allocated in the heap. Invoking [`clone`][clone] on [`Rc`] produces a new
@@ -267,7 +267,8 @@ struct RcBox<T: ?Sized> {
267267
value: T,
268268
}
269269

270-
/// A single-threaded reference-counting pointer.
270+
/// A single-threaded reference-counting pointer. 'Rc' stands for 'Reference
271+
/// Counted'.
271272
///
272273
/// See the [module-level documentation](./index.html) for more details.
273274
///

0 commit comments

Comments
 (0)