summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2018-07-23 12:53:37 +0200
committerRalf Jung <post@ralfj.de>2018-07-23 12:53:37 +0200
commita303741334baafa475632f23145695cba80ce8e7 (patch)
tree943d757872251eddcdfb29c9cc06055bf6b24acc
parent33b8f6253fe18af5bc882cf885d68538c90dab62 (diff)
downloadrust-a303741334baafa475632f23145695cba80ce8e7.tar.gz
typos
-rw-r--r--src/liballoc/rc.rs4
-rw-r--r--src/liballoc/sync.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs
index b50bf5c15d5..be049eb6e5e 100644
--- a/src/liballoc/rc.rs
+++ b/src/liballoc/rc.rs
@@ -1158,8 +1158,8 @@ pub struct Weak<T: ?Sized> {
// This is a `NonNull` to allow optimizing the size of this type in enums,
// but it is not necessarily a valid pointer.
// `Weak::new` sets this to `usize::MAX` so that it doesn’t need
- // to allocate space on the heap. That's not a value a real poiner
- // will ever have because RcBox has alignment at least 4.
+ // to allocate space on the heap. That's not a value a real pointer
+ // will ever have because RcBox has alignment at least 2.
ptr: NonNull<RcBox<T>>,
}
diff --git a/src/liballoc/sync.rs b/src/liballoc/sync.rs
index 4c14fef9b31..a00b6b4e435 100644
--- a/src/liballoc/sync.rs
+++ b/src/liballoc/sync.rs
@@ -239,8 +239,8 @@ pub struct Weak<T: ?Sized> {
// This is a `NonNull` to allow optimizing the size of this type in enums,
// but it is not necessarily a valid pointer.
// `Weak::new` sets this to `usize::MAX` so that it doesn’t need
- // to allocate space on the heap. That's not a value a real poiner
- // will ever have because RcBox has alignment at least 4.
+ // to allocate space on the heap. That's not a value a real pointer
+ // will ever have because RcBox has alignment at least 2.
ptr: NonNull<ArcInner<T>>,
}