diff options
| author | Tomas Tauber <2410580+tomtau@users.noreply.github.com> | 2019-09-16 12:13:02 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-16 12:13:02 +0800 |
| commit | 68c3739f1268e496c096d89ab9e556f196e35974 (patch) | |
| tree | 12dd0cc9f600d0c8849f215e323fc0165f6609fa | |
| parent | df7789c902eb198a107422dd8e4e4c81ec3cb6ad (diff) | |
| download | rust-68c3739f1268e496c096d89ab9e556f196e35974.tar.gz rust-68c3739f1268e496c096d89ab9e556f196e35974.zip | |
updated the panic message wording
| -rw-r--r-- | src/libstd/thread/local.rs | 2 |
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. |
