From 25ea5d07f7ba7e4eca0e3c908c70d7e90a1de4f4 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Thu, 4 Feb 2021 15:09:08 +0000 Subject: [PATCH] Fix error in doc comment. Signed-off-by: Daira Hopwood --- src/arithmetic/curves.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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>;