Skip to content

Commit 771748d

Browse files
committed
Fix the error reference for LocalKey::try_with
1 parent 7008a95 commit 771748d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/thread/local.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ impl<T: 'static> LocalKey<T> {
276276
///
277277
/// This will lazily initialize the value if this thread has not referenced
278278
/// this key yet. If the key has been destroyed (which may happen if this is called
279-
/// in a destructor), this function will return a `ThreadLocalError`.
279+
/// in a destructor), this function will return an [`AccessError`](struct.AccessError.html).
280280
///
281281
/// # Panics
282282
///

0 commit comments

Comments
 (0)