Skip to content

Commit

Permalink
Wording of the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rua committed Jun 2, 2024
1 parent 876458e commit 81b9e26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/src/num/int_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down
4 changes: 2 additions & 2 deletions core/src/num/uint_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down

0 comments on commit 81b9e26

Please sign in to comment.