about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authorStjepan Glavina <stjepang@gmail.com>2017-02-15 23:26:29 +0100
committerStjepan Glavina <stjepang@gmail.com>2017-02-15 23:31:51 +0100
commit1fbbe79bcb97cc85dfe5f6c431b7aca9784a9bd4 (patch)
tree0fb728078ad29e8d0560cec4d243563631a23cc3 /src/libstd/thread
parent025c328bf5ab336ff708e62a59292298dc1bc089 (diff)
downloadrust-1fbbe79bcb97cc85dfe5f6c431b7aca9784a9bd4.tar.gz
rust-1fbbe79bcb97cc85dfe5f6c431b7aca9784a9bd4.zip
Fix wording in LocalKey documentation
Diffstat (limited to 'src/libstd/thread')
-rw-r--r--src/libstd/thread/local.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/thread/local.rs b/src/libstd/thread/local.rs
index 5166ddf8a21..66f09a7069c 100644
--- a/src/libstd/thread/local.rs
+++ b/src/libstd/thread/local.rs
@@ -28,8 +28,8 @@ use mem;
 /// # Initialization and Destruction
 ///
 /// Initialization is dynamically performed on the first call to `with()`
-/// within a thread, and values support destructors which will be run when a
-/// thread exits.
+/// within a thread, and values that implement `Drop` get destructed when a
+/// thread exits. Some caveats apply, which are explained below.
 ///
 /// # Examples
 ///