]> git.lizzy.rs Git - rust.git/commitdiff
Fix typos.
authorWithout Boats <boats@mozilla.com>
Thu, 6 Sep 2018 19:31:06 +0000 (21:31 +0200)
committerWithout Boats <boats@mozilla.com>
Thu, 6 Sep 2018 19:31:06 +0000 (21:31 +0200)
src/liballoc/boxed.rs

index aeed139ebb76027dc5b0d08fa81fb5897dbab6c6..29ba433bec7f52ed8a9791baf2a0c176e14c8856 100644 (file)
@@ -751,7 +751,7 @@ fn as_mut(&mut self) -> &mut 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 @@ fn as_mut(&mut self) -> &mut 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).