Skip to content

Commit

Permalink
Improve Uint256::new docs
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Sep 4, 2021
1 parent 5d0745a commit c7ad0e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/std/src/math/uint256.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ impl Uint256 {
pub const MAX: Uint256 = Uint256(U256::MAX);

/// Creates a Uint256(value) from a big endian representation. It's just an alias for
/// `from_big_endian`.
/// [`Uint256::from_be_bytes`].
///
/// This method is less flexible than `from` but can be called in a const context.
pub const fn new(value: [u8; 32]) -> Self {
Self::from_be_bytes(value)
}
Expand Down

0 comments on commit c7ad0e8

Please sign in to comment.