Fix doctests for From<u64> for Scalar.

This commit is contained in:
Isis Lovecruft 2018-07-20 04:45:06 +00:00
parent 4d390fbd94
commit 6f82c30a88
Failed to extract signature

View file

@ -453,7 +453,6 @@ impl From<u32> for Scalar {
} }
impl From<u64> for Scalar { impl From<u64> for Scalar {
/// Construct a scalar from the given `u64`. /// Construct a scalar from the given `u64`.
/// ///
/// # Inputs /// # Inputs
@ -469,9 +468,9 @@ impl From<u64> for Scalar {
/// ``` /// ```
/// use curve25519_dalek::scalar::Scalar; /// use curve25519_dalek::scalar::Scalar;
/// ///
/// let fourtytwo = Scalar::from_u64(42); /// let fourtytwo = Scalar::from(42u64);
/// let six = Scalar::from_u64(6); /// let six = Scalar::from(6u64);
/// let seven = Scalar::from_u64(7); /// let seven = Scalar::from(7u64);
/// ///
/// assert!(fourtytwo == six * seven); /// assert!(fourtytwo == six * seven);
/// ``` /// ```