Skip to content

Commit

Permalink
Fix comment typos noticed by code review.
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Jung <post@ralfj.de>
  • Loading branch information
thomcc and RalfJung committed Feb 5, 2022
1 parent 6b06843 commit 9f7eb7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/io/error/repr_bitpacked.rs
Expand Up @@ -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
Expand All @@ -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.
//!
Expand Down

0 comments on commit 9f7eb7d

Please sign in to comment.