mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-07-30 20:11:23 +00:00
fix outdated example
This commit is contained in:
@@ -213,7 +213,8 @@ impl<Node: Hashable> CommitmentTree<Node> {
|
|||||||
/// sapling::Node,
|
/// sapling::Node,
|
||||||
/// };
|
/// };
|
||||||
///
|
///
|
||||||
/// let mut rng = OsRng::new().unwrap();
|
/// let mut rng = OsRng;
|
||||||
|
///
|
||||||
/// let mut tree = CommitmentTree::<Node>::new();
|
/// let mut tree = CommitmentTree::<Node>::new();
|
||||||
///
|
///
|
||||||
/// tree.append(Node::new(Fr::random(&mut rng).into_repr()));
|
/// tree.append(Node::new(Fr::random(&mut rng).into_repr()));
|
||||||
|
Reference in New Issue
Block a user