From e25ded5430be476fddef0b26bf85eb80c95cb2e2 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bossuat Date: Thu, 24 Apr 2025 19:22:02 +0200 Subject: [PATCH] doc typo --- base2k/src/encoding.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base2k/src/encoding.rs b/base2k/src/encoding.rs index f7773ee..c293190 100644 --- a/base2k/src/encoding.rs +++ b/base2k/src/encoding.rs @@ -13,7 +13,7 @@ pub trait Encoding { /// * `log_base2k`: base two negative logarithm decomposition of the receiver. /// * `log_k`: base two negative logarithm of the scaling of the data. /// * `data`: data to encode on the receiver. - /// * `log_max`: base two negative logarithm of the infinity norm of the input data. + /// * `log_max`: base two logarithm of the infinity norm of the input data. fn encode_vec_i64(&mut self, poly_idx: usize, log_base2k: usize, log_k: usize, data: &[i64], log_max: usize); /// decode a vector of i64 from the receiver. @@ -22,7 +22,7 @@ pub trait Encoding { /// /// * `poly_idx`: the index of the poly where to encode the data. /// * `log_base2k`: base two negative logarithm decomposition of the receiver. - /// * `log_k`: base two negative logarithm of the scaling of the data. + /// * `log_k`: base two logarithm of the scaling of the data. /// * `data`: data to decode from the receiver. fn decode_vec_i64(&self, poly_idx: usize, log_base2k: usize, log_k: usize, data: &mut [i64]); @@ -43,7 +43,7 @@ pub trait Encoding { /// * `log_k`: base two negative logarithm of the scaling of the data. /// * `i`: index of the coefficient on which to encode the data. /// * `data`: data to encode on the receiver. - /// * `log_max`: base two negative logarithm of the infinity norm of the input data. + /// * `log_max`: base two logarithm of the infinity norm of the input data. fn encode_coeff_i64(&mut self, poly_idx: usize, log_base2k: usize, log_k: usize, i: usize, data: i64, log_max: usize); /// decode a single of i64 from the receiver at the given index.