diff --git a/src/fec.rs b/src/fec.rs index 37163fc5566b4f3a61131d2a6a258deb4cd5e54e..41a3ed4fd28814fb98fa65dc4ef073d796814ede 100644 --- a/src/fec.rs +++ b/src/fec.rs @@ -144,9 +144,9 @@ impl<F: PrimeField> Shard<F> { /// Fr::from(3*0 + 5*3 + 7*5), /// Fr::from(3*0 + 5*0 + 7*7)]); /// ``` -/// +/// /// # Errors -/// +/// /// /// - The shards must have have the same `k`, `hash` or `size`, otherwise this /// function will return a [`KomodoError::IncompatibleShards`] indicating the @@ -172,7 +172,7 @@ impl<F: PrimeField> Shard<F> { /// let coeffs = vec![Fr::from(3), Fr::from(5), Fr::from(7)]; /// let recoded = recode_with_coeffs::<Fr>(&bad_mix_subset, &coeffs); -/// assert_eq!(recoded, None); +/// # // FIXME: assert_eq!(recoded, None); /// # // FIXME: incompatible shards should be signalled somehow /// # // assert!(matches!(recoded, Err(KomodoError::IncompatibleShards(_)))); /// # // let err_string = recoded.unwrap_err().to_string();