From c7ad0e8218e561b6a26dfbd85365a8d09a2fdd81 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Sat, 4 Sep 2021 09:12:24 +0200 Subject: [PATCH] Improve Uint256::new docs --- packages/std/src/math/uint256.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/std/src/math/uint256.rs b/packages/std/src/math/uint256.rs index 364f4ea9f2..d904c9cdfa 100644 --- a/packages/std/src/math/uint256.rs +++ b/packages/std/src/math/uint256.rs @@ -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) }