From be6c21f26771d19b9307a18074b686008d8ac8eb Mon Sep 17 00:00:00 2001 From: Sam Payson Date: Sun, 5 Jun 2016 10:20:33 -0700 Subject: [PATCH 1/2] Revise wording in Rc documentation. The term "thread-local" has a widely-accepted meaning which is not the meaning it's used for here. --- src/liballoc/rc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index cf4fb459bc1..d582de5740c 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -10,7 +10,7 @@ #![allow(deprecated)] -//! Thread-local reference-counted boxes (the `Rc` type). +//! Unsynchronized reference-counted boxes (the `Rc` type). //! //! The `Rc` type provides shared ownership of an immutable value. //! Destruction is deterministic, and will occur as soon as the last owner is From 46e7c9ec74ec437ca64bc095e7196f59e0d74148 Mon Sep 17 00:00:00 2001 From: Sam Payson Date: Thu, 7 Jul 2016 08:40:15 -0700 Subject: [PATCH 2/2] Changed wording per aturon's comments. --- src/liballoc/rc.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index d582de5740c..b505162dc0a 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -10,7 +10,8 @@ #![allow(deprecated)] -//! Unsynchronized reference-counted boxes (the `Rc` type). +//! Unsynchronized reference-counted boxes (the `Rc` type) which are usable +//! only within a single thread. //! //! The `Rc` type provides shared ownership of an immutable value. //! Destruction is deterministic, and will occur as soon as the last owner is