diff --git a/src/arithmetic/curves.rs b/src/arithmetic/curves.rs index 35dce17..837ac6b 100644 --- a/src/arithmetic/curves.rs +++ b/src/arithmetic/curves.rs @@ -92,7 +92,7 @@ pub trait Curve: /// let hasher = C::Projective::hash_to_curve("z.cash:example_pedersen_commitment"); /// let g = hasher(b"g"); /// let h = hasher(b"h"); - /// (g * x + h * r).to_affine() + /// (g * x + &(h * r)).to_affine() /// } /// ``` fn hash_to_curve(domain_prefix: &str) -> Box Self + 'static>;