diff options
| author | Thom Chiovoloni <chiovolonit@gmail.com> | 2021-08-10 10:46:02 -0700 |
|---|---|---|
| committer | Thom Chiovoloni <chiovolonit@gmail.com> | 2022-02-04 18:47:30 -0800 |
| commit | 9f7eb7d4732e1acfa461439bf8ae30753271419f (patch) | |
| tree | bd5fc029f8aafc867214d54252988cb3f7e7572b | |
| parent | 6b068437cb47dd9ca783171525ae891f383190ae (diff) | |
| download | rust-9f7eb7d4732e1acfa461439bf8ae30753271419f.tar.gz rust-9f7eb7d4732e1acfa461439bf8ae30753271419f.zip | |
Fix comment typos noticed by code review.
Co-authored-by: Ralf Jung <post@ralfj.de>
| -rw-r--r-- | library/std/src/io/error/repr_bitpacked.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/io/error/repr_bitpacked.rs b/library/std/src/io/error/repr_bitpacked.rs index 281cbdc23e4..b61a64f4f9a 100644 --- a/library/std/src/io/error/repr_bitpacked.rs +++ b/library/std/src/io/error/repr_bitpacked.rs @@ -28,7 +28,7 @@ //! //! This means we can skip tagging it, which is necessary as this variant can //! be constructed from a `const fn`, which probably cannot tag pointers (or -//! at least it would be difficult. +//! at least it would be difficult). //! //! - **Tag 0b01**: The other pointer variant holds the data for //! `ErrorData::Custom` and the remaining 62 bits are used to store a @@ -40,7 +40,7 @@ //! preserve the pointer's provenance, which would otherwise be lost. //! //! - **Tag 0b10**: Holds the data for `ErrorData::Os(i32)`. We store the `i32` -//! in the pointers most significant 32 bits, and don't use the bits `2..32` +//! in the pointer's most significant 32 bits, and don't use the bits `2..32` //! for anything. Using the top 32 bits is just to let us easily recover the //! `i32` code with the correct sign. //! |
