Commit a303741 1 parent 33b8f62 commit a303741 Copy full SHA for a303741
File tree 2 files changed +4
-4
lines changed
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> {
1158
1158
// This is a `NonNull` to allow optimizing the size of this type in enums,
1159
1159
// but it is not necessarily a valid pointer.
1160
1160
// `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 .
1163
1163
ptr : NonNull < RcBox < T > > ,
1164
1164
}
1165
1165
Original file line number Diff line number Diff line change @@ -239,8 +239,8 @@ pub struct Weak<T: ?Sized> {
239
239
// This is a `NonNull` to allow optimizing the size of this type in enums,
240
240
// but it is not necessarily a valid pointer.
241
241
// `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 .
244
244
ptr : NonNull < ArcInner < T > > ,
245
245
}
246
246
You can’t perform that action at this time.
0 commit comments