diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-05-15 10:58:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-15 10:58:39 +0200 |
| commit | 28bc8745ad752e80a05a8b075e701c314a7b1040 (patch) | |
| tree | a78e622b8ca7f9efd23b3b8998718b6f55b7de8f | |
| parent | 0bcfd2d96efe7a2cb5205c3af1b9eea17423fe65 (diff) | |
| parent | 3d02aa850bdb4c475a6dcbdebf879fdd625cdab9 (diff) | |
Rollup merge of #102673 - lukas-code:infered-lifetimes, r=ehuss
Update doc for `PhantomData` to match code example After https://github.com/rust-lang/rust/pull/106621, there is no longer a `T: 'a` annotation in the doc example, so update the text to match the code.
| -rw-r--r-- | library/core/src/marker.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/marker.rs b/library/core/src/marker.rs index 01606086fca..47a3e78b4d5 100644 --- a/library/core/src/marker.rs +++ b/library/core/src/marker.rs @@ -695,7 +695,7 @@ impl<T: ?Sized> !Sync for *mut T {} /// } /// ``` /// -/// This also in turn requires the annotation `T: 'a`, indicating +/// This also in turn infers the lifetime bound `T: 'a`, indicating /// that any references in `T` are valid over the lifetime `'a`. /// /// When initializing a `Slice` you simply provide the value |
