Skip to content

Commit

Permalink
elliptic-curve: fix ecdh docs (#834)
Browse files Browse the repository at this point in the history
There's an example marked `ignore` for the `diffie_hellman` function
which is no longer valid. This commit fixes it.
  • Loading branch information
tarcieri committed Dec 4, 2021
1 parent af0c9e7 commit ad3fa73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elliptic-curve/src/ecdh.rs
Expand Up @@ -51,7 +51,7 @@ use zeroize::Zeroize;
///
/// ```ignore
/// let shared_secret = elliptic_curve::ecdh::diffie_hellman(
/// secret_key.secret_scalar(),
/// secret_key.to_nonzero_scalar(),
/// public_key.as_affine()
/// );
/// ```
Expand Down

0 comments on commit ad3fa73

Please sign in to comment.