File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2101,7 +2101,7 @@ impl<T: ?Sized> Unpin for Rc<T> {}
2101
2101
///
2102
2102
/// - This function is safe for any argument if `T` is sized, and
2103
2103
/// - if `T` is unsized, the pointer must have appropriate pointer metadata
2104
- /// aquired from the real instance that you are getting this offset for.
2104
+ /// acquired from the real instance that you are getting this offset for.
2105
2105
unsafe fn data_offset < T : ?Sized > ( ptr : * const T ) -> isize {
2106
2106
// Align the unsized value to the end of the `RcBox`.
2107
2107
// Because it is ?Sized, it will always be the last field in memory.
Original file line number Diff line number Diff line change @@ -2255,7 +2255,7 @@ impl<T: ?Sized> Unpin for Arc<T> {}
2255
2255
///
2256
2256
/// - This function is safe for any argument if `T` is sized, and
2257
2257
/// - if `T` is unsized, the pointer must have appropriate pointer metadata
2258
- /// aquired from the real instance that you are getting this offset for.
2258
+ /// acquired from the real instance that you are getting this offset for.
2259
2259
unsafe fn data_offset < T : ?Sized > ( ptr : * const T ) -> isize {
2260
2260
// Align the unsized value to the end of the `ArcInner`.
2261
2261
// Because it is `?Sized`, it will always be the last field in memory.
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ fn box_clone_and_clone_from_equivalence() {
37
37
/// This test might give a false positive in case the box realocates, but the alocator keeps the
38
38
/// original pointer.
39
39
///
40
- /// On the other hand it won't give a false negative, if it fails than the memory was definitly not
40
+ /// On the other hand it won't give a false negative, if it fails than the memory was definitely not
41
41
/// reused
42
42
#[ test]
43
43
fn box_clone_from_ptr_stability ( ) {
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ unsafe impl AllocRef for System {
189
189
ReallocPlacement :: MayMove if layout. size ( ) == 0 => {
190
190
let new_layout =
191
191
// SAFETY: The new size and layout alignement guarantees
192
- // are transfered to the caller (they come from parameters).
192
+ // are transferred to the caller (they come from parameters).
193
193
//
194
194
// See the preconditions for `Layout::from_size_align` to
195
195
// see what must be checked.
@@ -254,7 +254,7 @@ unsafe impl AllocRef for System {
254
254
//
255
255
// See `GlobalAlloc::realloc` for more informations about the
256
256
// guarantees expected by this method. `ptr`, `layout` and
257
- // `new_size` are parameters and the responsability for their
257
+ // `new_size` are parameters and the responsibility for their
258
258
// correctness is left to the caller.
259
259
//
260
260
// `realloc` probably checks for `new_size < size` or something
Original file line number Diff line number Diff line change @@ -1363,7 +1363,7 @@ mod self_upper_keyword {}
1363
1363
///
1364
1364
/// let r1 = &FOO as *const _;
1365
1365
/// let r2 = &FOO as *const _;
1366
- /// // With a strictly read-only static, references will have the same adress
1366
+ /// // With a strictly read-only static, references will have the same address
1367
1367
/// assert_eq!(r1, r2);
1368
1368
/// // A static item can be used just like a variable in many cases
1369
1369
/// println!("{:?}", FOO);
Original file line number Diff line number Diff line change 81
81
// see the changes to drop the `Waiter` struct correctly.
82
82
// * There is one place where the two atomics `Once.state_and_queue` and
83
83
// `Waiter.signaled` come together, and might be reordered by the compiler or
84
- // processor. Because both use Aquire ordering such a reordering is not
84
+ // processor. Because both use Acquire ordering such a reordering is not
85
85
// allowed, so no need for SeqCst.
86
86
87
87
use crate :: cell:: Cell ;
You can’t perform that action at this time.
0 commit comments