Fix error in doc comment.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2021-02-04 15:09:08 +00:00
parent 9aa3327a0a
commit 25ea5d07f7
1 changed files with 1 additions and 1 deletions

View File

@ -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<dyn Fn(&[u8]) -> Self + 'static>;