typos
This commit is contained in:
parent
33b8f6253f
commit
a303741334
@ -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>>,
|
||||
}
|
||||
|
||||
|
@ -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>>,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user