Skip to content

Commit 9f7eb7d

Browse files
thomccRalfJung
andcommitted
Fix comment typos noticed by code review.
Co-authored-by: Ralf Jung <[email protected]>
1 parent 6b06843 commit 9f7eb7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/io/error/repr_bitpacked.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
//!
2929
//! This means we can skip tagging it, which is necessary as this variant can
3030
//! be constructed from a `const fn`, which probably cannot tag pointers (or
31-
//! at least it would be difficult.
31+
//! at least it would be difficult).
3232
//!
3333
//! - **Tag 0b01**: The other pointer variant holds the data for
3434
//! `ErrorData::Custom` and the remaining 62 bits are used to store a
@@ -40,7 +40,7 @@
4040
//! preserve the pointer's provenance, which would otherwise be lost.
4141
//!
4242
//! - **Tag 0b10**: Holds the data for `ErrorData::Os(i32)`. We store the `i32`
43-
//! in the pointers most significant 32 bits, and don't use the bits `2..32`
43+
//! in the pointer's most significant 32 bits, and don't use the bits `2..32`
4444
//! for anything. Using the top 32 bits is just to let us easily recover the
4545
//! `i32` code with the correct sign.
4646
//!

0 commit comments

Comments
 (0)