about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTomas Tauber <2410580+tomtau@users.noreply.github.com>2019-09-16 12:13:02 +0800
committerGitHub <noreply@github.com>2019-09-16 12:13:02 +0800
commit68c3739f1268e496c096d89ab9e556f196e35974 (patch)
tree12dd0cc9f600d0c8849f215e323fc0165f6609fa
parentdf7789c902eb198a107422dd8e4e4c81ec3cb6ad (diff)
downloadrust-68c3739f1268e496c096d89ab9e556f196e35974.tar.gz
rust-68c3739f1268e496c096d89ab9e556f196e35974.zip
updated the panic message wording
-rw-r--r--src/libstd/thread/local.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/thread/local.rs b/src/libstd/thread/local.rs
index a2bbe371de7..e92c0d1c58e 100644
--- a/src/libstd/thread/local.rs
+++ b/src/libstd/thread/local.rs
@@ -237,7 +237,7 @@ impl<T: 'static> LocalKey<T> {
     pub fn with<F, R>(&'static self, f: F) -> R
                       where F: FnOnce(&T) -> R {
         self.try_with(f).expect("cannot access a Thread Local Storage value \
-                                 during or after it is destroyed")
+                                 during or after destruction")
     }
 
     /// Acquires a reference to the value in this TLS key.