Skip to content

Commit a303741

Browse files
committed
typos
1 parent 33b8f62 commit a303741

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/liballoc/rc.rs

+2-2
Original file line numberDiff line numberDiff 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

src/liballoc/sync.rs

+2-2
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)