fix typo in shred.rs (#29149)

calcuation -> calculation
This commit is contained in:
Ikko Ashimine 2022-12-15 16:14:39 +09:00 committed by GitHub
parent 5a687fa818
commit 50c1de5597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ fn test_multi_fec_block_different_size_coding() {
let recovered_data = Shredder::try_recovery(all_shreds, &reed_solomon_cache).unwrap(); let recovered_data = Shredder::try_recovery(all_shreds, &reed_solomon_cache).unwrap();
// Necessary in order to ensure the last shred in the slot // Necessary in order to ensure the last shred in the slot
// is part of the recovered set, and that the below `index` // is part of the recovered set, and that the below `index`
// calcuation in the loop is correct // calculation in the loop is correct
assert!(fec_data_shreds.len() % 2 == 0); assert!(fec_data_shreds.len() % 2 == 0);
for (i, recovered_shred) in recovered_data.into_iter().enumerate() { for (i, recovered_shred) in recovered_data.into_iter().enumerate() {
let index = first_data_index + (i * 2) + 1; let index = first_data_index + (i * 2) + 1;