From 06edf082c313de1424b06928457d76576302ba2f Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Tue, 10 Aug 2021 11:07:30 -0700 Subject: Update library/std/src/io/error/repr_bitpacked.rs Co-authored-by: the8472 --- library/std/src/io/error/repr_bitpacked.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/io/error/repr_bitpacked.rs b/library/std/src/io/error/repr_bitpacked.rs index b61a64f4f9a..9b7c34f67a0 100644 --- a/library/std/src/io/error/repr_bitpacked.rs +++ b/library/std/src/io/error/repr_bitpacked.rs @@ -214,7 +214,7 @@ where let kind_bits = (bits >> 32) as u32; let kind = kind_from_prim(kind_bits).unwrap_or_else(|| { debug_assert!(false, "Invalid io::error::Repr bits: `Repr({:#018x})`", bits); - // This means the `ptr` passed in was not valid, which voilates + // This means the `ptr` passed in was not valid, which violates // the unsafe contract of `decode_repr`. // // Using this rather than unwrap meaningfully improves the code -- cgit 1.4.1-3-g733a5