From 5b263dabd0e8e2c752b45217dda8bc18600350cf Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Wed, 4 Jul 2018 21:43:13 +0000 Subject: [PATCH] Line wrap some docstrings in scalar.rs. --- src/scalar.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/scalar.rs b/src/scalar.rs index 2ed4bde..4616e67 100644 --- a/src/scalar.rs +++ b/src/scalar.rs @@ -75,14 +75,18 @@ type UnpackedScalar = backend::u32::scalar::Scalar32; /// represents an element of \\(\mathbb Z / \ell\\). #[derive(Copy, Clone)] pub struct Scalar { - /// `bytes` is a little-endian byte encoding of an integer representing a scalar modulo the group order. + /// `bytes` is a little-endian byte encoding of an integer representing a scalar modulo the + /// group order. /// /// # Invariant /// - /// The integer representing this scalar must be bounded above by \\(2\^{255}\\), or equivalently the high bit of `bytes[31]` must be zero. + /// The integer representing this scalar must be bounded above by \\(2\^{255}\\), or + /// equivalently the high bit of `bytes[31]` must be zero. /// /// This ensures that there is room for a carry bit when computing a NAF representation. - // XXX This is pub(crate) so we can write literal constants. If const fns were stable, we could make the Scalar constructors const fns and use those instead. + // + // XXX This is pub(crate) so we can write literal constants. If const fns were stable, we could + // make the Scalar constructors const fns and use those instead. pub(crate) bytes: [u8; 32], }