diff options
| author | kennytm <kennytm@gmail.com> | 2018-06-28 06:15:42 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-28 06:15:42 +0800 |
| commit | 7f4347f8e2845a2a4fbe97ce776518b5027bd026 (patch) | |
| tree | 050d87f8340519e87b6fa1bbcc5c6795fa3c9fe1 /src/libstd/thread | |
| parent | 700a2f799a9e768b41e782ff3060720c9e2a3a75 (diff) | |
| parent | 771748d0ba2fd956a5bddaa2c265115c47f49343 (diff) | |
| download | rust-7f4347f8e2845a2a4fbe97ce776518b5027bd026.tar.gz rust-7f4347f8e2845a2a4fbe97ce776518b5027bd026.zip | |
Rollup merge of #51824 - vorner:thread-local-try-with-doc, r=kennytm
Fix the error reference for LocalKey::try_with There's no such thing as `ThreadLocalError` and the method obviously returns `AccessError`, so adjusting (probably only outdated docs).
Diffstat (limited to 'src/libstd/thread')
| -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 40d3280baa6..a170abb2628 100644 --- a/src/libstd/thread/local.rs +++ b/src/libstd/thread/local.rs @@ -276,7 +276,7 @@ impl<T: 'static> LocalKey<T> { /// /// This will lazily initialize the value if this thread has not referenced /// this key yet. If the key has been destroyed (which may happen if this is called - /// in a destructor), this function will return a `ThreadLocalError`. + /// in a destructor), this function will return an [`AccessError`](struct.AccessError.html). /// /// # Panics /// |
