fix outdated example
This commit is contained in:
parent
7476e4ea28
commit
730d2cbc7e
|
@ -213,7 +213,8 @@ impl<Node: Hashable> CommitmentTree<Node> {
|
|||
/// sapling::Node,
|
||||
/// };
|
||||
///
|
||||
/// let mut rng = OsRng::new().unwrap();
|
||||
/// let mut rng = OsRng;
|
||||
///
|
||||
/// let mut tree = CommitmentTree::<Node>::new();
|
||||
///
|
||||
/// tree.append(Node::new(Fr::random(&mut rng).into_repr()));
|
||||
|
|
Loading…
Reference in New Issue