From e6c0d85555da2b7ebb467d629a9172dd9182cc44 Mon Sep 17 00:00:00 2001 From: kennytm Date: Sun, 5 Jan 2020 00:14:33 +0800 Subject: [PATCH] Fix doc failure on nightly. Fix #41. --- Cargo.toml | 2 +- src/ec.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 85b67ca..449a26e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "qrcode" description = "QR code encoder in Rust" license = "MIT OR Apache-2.0" -version = "0.11.1" +version = "0.11.2" edition = "2018" authors = ["kennytm "] keywords = ["qrcode"] diff --git a/src/ec.rs b/src/ec.rs index 6147f4a..dbe9594 100644 --- a/src/ec.rs +++ b/src/ec.rs @@ -13,9 +13,9 @@ use crate::types::{EcLevel, QrResult, Version}; /// 69 bytes. Longer blocks will result in task panic. /// /// This method treats the data as a polynomial of the form -/// (a[0] xm+n + a[1] xm+n-1 + … + a[m] xn) in -/// GF(256), and then computes the polynomial modulus with a generator -/// polynomial of degree N. +/// (a\[0\] xm+n + a\[1\] xm+n-1 + … + a\[m\] xn) +/// in GF(28), and then computes the polynomial modulus with a +/// generator polynomial of degree N. pub fn create_error_correction_code(data: &[u8], ec_code_size: usize) -> Vec { let data_len = data.len(); let log_den = GENERATOR_POLYNOMIALS[ec_code_size];