strengthen the wording in docs

Co-authored-by: Philipp Gackstatter <PhilippGackstatter@users.noreply.github.com>
This commit is contained in:
Grzegorz Świrski 2025-04-16 09:32:16 +02:00 committed by Qyriad
parent 56a94c1a8b
commit b77bc65b18

View file

@ -29,7 +29,7 @@ impl MerklePath {
/// Creates a new Merkle path from a list of nodes. /// Creates a new Merkle path from a list of nodes.
/// ///
/// The list is assumed to be in order of deepest to shallowest. /// The list must be in order of deepest to shallowest.
pub fn new(nodes: Vec<RpoDigest>) -> Self { pub fn new(nodes: Vec<RpoDigest>) -> Self {
assert!(nodes.len() <= u8::MAX.into(), "MerklePath may have at most 256 items"); assert!(nodes.len() <= u8::MAX.into(), "MerklePath may have at most 256 items");
Self { nodes } Self { nodes }