File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1158,8 +1158,8 @@ pub struct Weak<T: ?Sized> {
11581158 // This is a `NonNull` to allow optimizing the size of this type in enums,
11591159 // but it is not necessarily a valid pointer.
11601160 // `Weak::new` sets this to `usize::MAX` so that it doesn’t need
1161- // to allocate space on the heap. That's not a value a real poiner
1162- // will ever have because RcBox has alignment at least 4 .
1161+ // to allocate space on the heap. That's not a value a real pointer
1162+ // will ever have because RcBox has alignment at least 2 .
11631163 ptr : NonNull < RcBox < T > > ,
11641164}
11651165
Original file line number Diff line number Diff line change @@ -239,8 +239,8 @@ pub struct Weak<T: ?Sized> {
239239 // This is a `NonNull` to allow optimizing the size of this type in enums,
240240 // but it is not necessarily a valid pointer.
241241 // `Weak::new` sets this to `usize::MAX` so that it doesn’t need
242- // to allocate space on the heap. That's not a value a real poiner
243- // will ever have because RcBox has alignment at least 4 .
242+ // to allocate space on the heap. That's not a value a real pointer
243+ // will ever have because RcBox has alignment at least 2 .
244244 ptr : NonNull < ArcInner < T > > ,
245245}
246246
You can’t perform that action at this time.
0 commit comments