Skip to content

Commit

Permalink
updated the panic message wording
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtau committed Sep 16, 2019
1 parent df7789c commit 68c3739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/thread/local.rs
Expand Up @@ -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.
Expand Down

0 comments on commit 68c3739

Please sign in to comment.