File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -350,9 +350,8 @@ macro_rules! try {
350
350
/// assert_eq!(v, b"s = \"abc 123\"");
351
351
/// ```
352
352
///
353
- /// Note: This macro can be used in `no_std` setups as well
354
- /// In a `no_std` setup you are responsible for the
355
- /// implementation details of the components.
353
+ /// Note: This macro can be used in `no_std` setups as well.
354
+ /// In a `no_std` setup you are responsible for the implementation details of the components.
356
355
///
357
356
/// ```no_run
358
357
/// # extern crate core;
@@ -440,7 +439,7 @@ macro_rules! writeln {
440
439
///
441
440
/// If the determination that the code is unreachable proves incorrect, the
442
441
/// program immediately terminates with a [`panic!`]. The function [`unreachable_unchecked`],
443
- /// which belongs to the [`std::hint`] module, informs the compilier to
442
+ /// which belongs to the [`std::hint`] module, informs the compiler to
444
443
/// optimize the code out of the release version entirely.
445
444
///
446
445
/// [`panic!`]: ../std/macro.panic.html
Original file line number Diff line number Diff line change 3
3
//! It is sometimes useful to have objects that are guaranteed to not move,
4
4
//! in the sense that their placement in memory does not change, and can thus be relied upon.
5
5
//!
6
- //! A prime example of such a scenario would be building self-referencial structs,
6
+ //! A prime example of such a scenario would be building self-referential structs,
7
7
//! since moving an object with pointers to itself will invalidate them,
8
8
//! which could cause undefined behavior.
9
9
//!
39
39
//! use std::marker::Pinned;
40
40
//! use std::ptr::NonNull;
41
41
//!
42
- //! // This is a self referencial struct since the slice field points to the data field.
42
+ //! // This is a self-referential struct since the slice field points to the data field.
43
43
//! // We cannot inform the compiler about that with a normal reference,
44
44
//! // since this pattern cannot be described with the usual borrowing rules.
45
45
//! // Instead we use a raw pointer, though one which is known to not be null,
You can’t perform that action at this time.
0 commit comments