Skip to content

Commit 972cd8b

Browse files
author
Without Boats
committed
Fix typos.
1 parent c82af09 commit 972cd8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/liballoc/boxed.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ impl<T: ?Sized> AsMut<T> for Box<T> {
751751

752752
/* Nota bene
753753
*
754-
* We could have chosen not to add this impl, and instead have written a
754+
* We could have chosen not to add this impl, and instead have written a
755755
* function of Pin<Box<T>> to Pin<T>. Such a function would not be sound,
756756
* because Box<T> implements Unpin even when T does not, as a result of
757757
* this impl.
@@ -762,7 +762,7 @@ impl<T: ?Sized> AsMut<T> for Box<T> {
762762
* standard library pointer types support projecting through a pin
763763
* (Box<T> is the only pointer type in std for which this would be
764764
* safe.)
765-
* - It is in practive very useful to have Box<T> be unconditionally
765+
* - It is in practice very useful to have Box<T> be unconditionally
766766
* Unpin because of trait objects, for which the structural auto
767767
* trait functionality does not apply (e.g. Box<dyn Foo> would
768768
* otherwise not be Unpin).

0 commit comments

Comments
 (0)