typos
This commit is contained in:
parent
33b8f6253f
commit
a303741334
2 changed files with 4 additions and 4 deletions
|
@ -1158,8 +1158,8 @@ pub struct Weak<T: ?Sized> {
|
||||||
// This is a `NonNull` to allow optimizing the size of this type in enums,
|
// This is a `NonNull` to allow optimizing the size of this type in enums,
|
||||||
// but it is not necessarily a valid pointer.
|
// but it is not necessarily a valid pointer.
|
||||||
// `Weak::new` sets this to `usize::MAX` so that it doesn’t need
|
// `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
|
// to allocate space on the heap. That's not a value a real pointer
|
||||||
// will ever have because RcBox has alignment at least 4.
|
// will ever have because RcBox has alignment at least 2.
|
||||||
ptr: NonNull<RcBox<T>>,
|
ptr: NonNull<RcBox<T>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -239,8 +239,8 @@ pub struct Weak<T: ?Sized> {
|
||||||
// This is a `NonNull` to allow optimizing the size of this type in enums,
|
// This is a `NonNull` to allow optimizing the size of this type in enums,
|
||||||
// but it is not necessarily a valid pointer.
|
// but it is not necessarily a valid pointer.
|
||||||
// `Weak::new` sets this to `usize::MAX` so that it doesn’t need
|
// `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
|
// to allocate space on the heap. That's not a value a real pointer
|
||||||
// will ever have because RcBox has alignment at least 4.
|
// will ever have because RcBox has alignment at least 2.
|
||||||
ptr: NonNull<ArcInner<T>>,
|
ptr: NonNull<ArcInner<T>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue