Fix documentation for alloc features.

This commit is contained in:
Sean Bowe 2019-11-14 12:09:34 -07:00
parent 384e75e892
commit ea4374cc73
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
1 changed files with 2 additions and 4 deletions

View File

@ -228,8 +228,7 @@ impl_binops_multiplicative!(Gt, Scalar);
/// conjunction with the [`multi_miller_loop`](crate::multi_miller_loop)
/// function provided by this crate.
///
/// Requires the `pairings` crate feature to be enabled, which requires the
/// `alloc` crate.
/// Requires the `alloc` and `pairing` crate features to be enabled.
pub struct G2Prepared {
infinity: Choice,
coeffs: Vec<(Fp2, Fp2, Fp2)>,
@ -290,8 +289,7 @@ impl From<G2Affine> for G2Prepared {
/// Computes $$\sum_{i=1}^n \textbf{ML}(a_i, b_i)$$ given a series of terms
/// $$(a_1, b_1), (a_2, b_2), ..., (a_n, b_n).$$
///
/// Requires the `pairings` crate feature to be enabled, which requires the
/// `alloc` crate.
/// Requires the `alloc` and `pairing` crate features to be enabled.
pub fn multi_miller_loop(terms: &[(&G1Affine, &G2Prepared)]) -> MillerLoopResult {
struct Adder<'a, 'b, 'c> {
terms: &'c [(&'a G1Affine, &'b G2Prepared)],