Skip to content

Commit af2182c

Browse files
authored
Rollup merge of rust-lang#102673 - lukas-code:infered-lifetimes, r=ehuss
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.
2 parents 8d18c32 + 3d02aa8 commit af2182c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/marker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ impl<T: ?Sized> !Sync for *mut T {}
695695
/// }
696696
/// ```
697697
///
698-
/// This also in turn requires the annotation `T: 'a`, indicating
698+
/// This also in turn infers the lifetime bound `T: 'a`, indicating
699699
/// that any references in `T` are valid over the lifetime `'a`.
700700
///
701701
/// When initializing a `Slice` you simply provide the value

0 commit comments

Comments
 (0)