File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -485,12 +485,12 @@ impl<P: Deref<Target: Unpin>> Pin<P> {
485
485
///
486
486
/// Unlike `Pin::new_unchecked`, this method is safe because the pointer
487
487
/// `P` dereferences to an [`Unpin`] type, which cancels the pinning guarantees.
488
- ///
488
+ ///
489
489
/// # Examples
490
- ///
490
+ ///
491
491
/// ```
492
492
/// use std::pin::Pin;
493
- ///
493
+ ///
494
494
/// let val: u8 = 5;
495
495
/// // Wrap the value in a pin to make sure it doesn't move
496
496
/// let pinned: Pin<&u8> = Pin::new(&val);
@@ -508,9 +508,9 @@ impl<P: Deref<Target: Unpin>> Pin<P> {
508
508
///
509
509
/// This requires that the data inside this `Pin` is [`Unpin`] so that we
510
510
/// can ignore the pinning invariants when unwrapping it.
511
- ///
511
+ ///
512
512
/// # Examples
513
- ///
513
+ ///
514
514
/// ```
515
515
/// use std::pin::Pin;
516
516
///
You can’t perform that action at this time.
0 commit comments