File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -532,14 +532,14 @@ impl<T: ?Sized> !Sync for *mut T {}
532
532
/// use std::marker::PhantomData;
533
533
///
534
534
/// # #[allow(dead_code)]
535
- /// struct Slice<'a, T: 'a > {
535
+ /// struct Slice<'a, T> {
536
536
/// start: *const T,
537
537
/// end: *const T,
538
538
/// phantom: PhantomData<&'a T>,
539
539
/// }
540
540
/// ```
541
541
///
542
- /// This also in turn requires the annotation `T: 'a`, indicating
542
+ /// This also in turn infers the lifetime bound `T: 'a`, indicating
543
543
/// that any references in `T` are valid over the lifetime `'a`.
544
544
///
545
545
/// When initializing a `Slice` you simply provide the value
@@ -548,7 +548,7 @@ impl<T: ?Sized> !Sync for *mut T {}
548
548
/// ```
549
549
/// # #![allow(dead_code)]
550
550
/// # use std::marker::PhantomData;
551
- /// # struct Slice<'a, T: 'a > {
551
+ /// # struct Slice<'a, T> {
552
552
/// # start: *const T,
553
553
/// # end: *const T,
554
554
/// # phantom: PhantomData<&'a T>,
You can’t perform that action at this time.
0 commit comments