Skip to content

Commit

Permalink
Rollup merge of rust-lang#102673 - lukas-code:infered-lifetimes, r=ehuss
Browse files Browse the repository at this point in the history
Update doc for `PhantomData` to match code example

After rust-lang#106621, there is no longer a `T: 'a` annotation in the doc example, so update the text to match the code.
  • Loading branch information
matthiaskrgr authored May 15, 2023
2 parents 8d18c32 + 3d02aa8 commit af2182c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af2182c

Please sign in to comment.