Skip to content

Commit f2c4281

Browse files
authored
Typo fix
1 parent 56b6bd8 commit f2c4281

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/pin.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,8 @@ impl<P: Deref> Pin<P> {
572572
/// // though we have previously pinned it! We have violated the pinning API contract.
573573
/// }
574574
/// ```
575-
/// A value, once pinned, must remain pinned until it is dropped (unless its type implements
576-
/// `Unpin`). Beacuse `Pin<&mut T>` does not own the value, dropping the `Pin` will not drop
575+
/// A value, once pinned, must remain pinned until it is dropped (unless its type implements
576+
/// `Unpin`). Because `Pin<&mut T>` does not own the value, dropping the `Pin` will not drop
577577
/// the value and will not end the pinning contract. So moving the value after dropping the
578578
/// `Pin<&mut T>` is still a violation of the API contract.
579579
///

0 commit comments

Comments
 (0)