From 81b9e26560bb48d3a663899d5e6e83bf0e19c6ea Mon Sep 17 00:00:00 2001 From: Rua Date: Sun, 2 Jun 2024 21:03:24 +0200 Subject: [PATCH] Wording of the documentation --- core/src/num/int_macros.rs | 4 ++-- core/src/num/uint_macros.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/num/int_macros.rs b/core/src/num/int_macros.rs index e674ce46a330f..96510ee4dca60 100644 --- a/core/src/num/int_macros.rs +++ b/core/src/num/int_macros.rs @@ -185,8 +185,8 @@ macro_rules! int_impl { /// Returns the bit pattern of `self` reinterpreted as an unsigned integer of the same size. /// - /// This is a bit safer than `as` because it wouldn't silently change the size if the code - /// is refactored. + /// This produces the same result as an `as` cast, but ensures that the bit-width remains + /// the same. /// /// # Examples /// diff --git a/core/src/num/uint_macros.rs b/core/src/num/uint_macros.rs index 229f5ac587806..1491c27372bfb 100644 --- a/core/src/num/uint_macros.rs +++ b/core/src/num/uint_macros.rs @@ -186,8 +186,8 @@ macro_rules! uint_impl { /// Returns the bit pattern of `self` reinterpreted as a signed integer of the same size. /// - /// This is a bit safer than `as` because it wouldn't silently change the size if the code - /// is refactored. + /// This produces the same result as an `as` cast, but ensures that the bit-width remains + /// the same. /// /// # Examples ///