Skip to content

Commit 68c3739

Browse files
authored
updated the panic message wording
1 parent df7789c commit 68c3739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/thread/local.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ impl<T: 'static> LocalKey<T> {
237237
pub fn with<F, R>(&'static self, f: F) -> R
238238
where F: FnOnce(&T) -> R {
239239
self.try_with(f).expect("cannot access a Thread Local Storage value \
240-
during or after it is destroyed")
240+
during or after destruction")
241241
}
242242

243243
/// Acquires a reference to the value in this TLS key.

0 commit comments

Comments
 (0)