Skip to content

Commit

Permalink
Rollup merge of #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/rust#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 committed May 15, 2023
2 parents bab811f + 53947ad commit 26e27ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 26e27ba

Please sign in to comment.