Update wording on Scalar::invert to use self

This commit is contained in:
Henry de Valence 2018-07-05 13:34:02 -07:00
parent b70b32a0c5
commit 0ab60b93ee

View file

@ -522,11 +522,11 @@ impl Scalar {
Scalar{ bytes: s_bytes }
}
/// Compute the multiplicative inverse of this scalar.
/// Given a nonzero `Scalar`, compute its multiplicative inverse.
///
/// # Warning
///
/// All input `Scalars` **MUST** be nonzero. If you cannot
/// `self` **MUST** be nonzero. If you cannot
/// *prove* that this is the case, you **SHOULD NOT USE THIS
/// FUNCTION**.
///