Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 81b9e26

Browse files
committedJun 2, 2024
Wording of the documentation
1 parent 876458e commit 81b9e26

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎core/src/num/int_macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ macro_rules! int_impl {
185185

186186
/// Returns the bit pattern of `self` reinterpreted as an unsigned integer of the same size.
187187
///
188-
/// This is a bit safer than `as` because it wouldn't silently change the size if the code
189-
/// is refactored.
188+
/// This produces the same result as an `as` cast, but ensures that the bit-width remains
189+
/// the same.
190190
///
191191
/// # Examples
192192
///

‎core/src/num/uint_macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ macro_rules! uint_impl {
186186

187187
/// Returns the bit pattern of `self` reinterpreted as a signed integer of the same size.
188188
///
189-
/// This is a bit safer than `as` because it wouldn't silently change the size if the code
190-
/// is refactored.
189+
/// This produces the same result as an `as` cast, but ensures that the bit-width remains
190+
/// the same.
191191
///
192192
/// # Examples
193193
///

0 commit comments

Comments
 (0)
Failed to load comments.