about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorWithout Boats <boats@mozilla.com>2018-09-06 21:31:06 +0200
committerWithout Boats <boats@mozilla.com>2018-09-06 21:31:06 +0200
commit972cd8bb69d4c856735adc8abcfceab96a62f716 (patch)
tree72a6072219b1694c7f5b1d9b9ce172e7538c1908 /src/liballoc
parentc82af09bb0fb78379cf3b525d22f902b3139217f (diff)
downloadrust-972cd8bb69d4c856735adc8abcfceab96a62f716.tar.gz
rust-972cd8bb69d4c856735adc8abcfceab96a62f716.zip
Fix typos.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/boxed.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs
index aeed139ebb7..29ba433bec7 100644
--- a/src/liballoc/boxed.rs
+++ b/src/liballoc/boxed.rs
@@ -751,7 +751,7 @@ impl<T: ?Sized> AsMut<T> for Box<T> {
 
 /* Nota bene
  *
- *  We could have chosen not to add this impl, and instead have written a 
+ *  We could have chosen not to add this impl, and instead have written a
  *  function of Pin<Box<T>> to Pin<T>. Such a function would not be sound,
  *  because Box<T> implements Unpin even when T does not, as a result of
  *  this impl.
@@ -762,7 +762,7 @@ impl<T: ?Sized> AsMut<T> for Box<T> {
  *        standard library pointer types support projecting through a pin
  *        (Box<T> is the only pointer type in std for which this would be
  *        safe.)
- *      - It is in practive very useful to have Box<T> be unconditionally
+ *      - It is in practice very useful to have Box<T> be unconditionally
  *        Unpin because of trait objects, for which the structural auto
  *        trait functionality does not apply (e.g. Box<dyn Foo> would
  *        otherwise not be Unpin).