Skip to content

Commit df7789c

Browse files
committed
Made a thread local storage panic message more explanatory
(TLS is usually understood as Transport Layer Security outside rust-std internals)
1 parent 572d3d9 commit df7789c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/thread/local.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ impl<T: 'static> LocalKey<T> {
236236
#[stable(feature = "rust1", since = "1.0.0")]
237237
pub fn with<F, R>(&'static self, f: F) -> R
238238
where F: FnOnce(&T) -> R {
239-
self.try_with(f).expect("cannot access a TLS value during or \
240-
after it is destroyed")
239+
self.try_with(f).expect("cannot access a Thread Local Storage value \
240+
during or after it is destroyed")
241241
}
242242

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

0 commit comments

Comments
 (0)