chore: fix typo in shred.rs (#21890)

begining -> beginning
This commit is contained in:
Ikko Ashimine
2021-12-15 01:19:27 +09:00
committed by GitHub
parent 509bcd2e74
commit e19c7923c3

View File

@ -537,7 +537,7 @@ impl Shred {
block.resize(size, 0u8); block.resize(size, 0u8);
} }
ShredType::Code => { ShredType::Code => {
// SIZE_OF_CODING_SHRED_HEADERS bytes at the begining of the // SIZE_OF_CODING_SHRED_HEADERS bytes at the beginning of the
// coding shreds contains the header and is not part of erasure // coding shreds contains the header and is not part of erasure
// coding. // coding.
let offset = SIZE_OF_CODING_SHRED_HEADERS.min(block.len()); let offset = SIZE_OF_CODING_SHRED_HEADERS.min(block.len());