We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d0745a commit c7ad0e8Copy full SHA for c7ad0e8
packages/std/src/math/uint256.rs
@@ -51,7 +51,9 @@ impl Uint256 {
51
pub const MAX: Uint256 = Uint256(U256::MAX);
52
53
/// Creates a Uint256(value) from a big endian representation. It's just an alias for
54
- /// `from_big_endian`.
+ /// [`Uint256::from_be_bytes`].
55
+ ///
56
+ /// This method is less flexible than `from` but can be called in a const context.
57
pub const fn new(value: [u8; 32]) -> Self {
58
Self::from_be_bytes(value)
59
}
0 commit comments