Skip to content

Commit

Permalink
chore: Fix typo in bytecode.rs (#16)
Browse files Browse the repository at this point in the history
occurence -> occurrence

Co-authored-by: Roman Brodetski <[email protected]>
Co-authored-by: Danil <[email protected]>
Co-authored-by: Igor Borodin <[email protected]>
  • Loading branch information
4 people authored Oct 12, 2023
1 parent ff60138 commit 9b43ecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/utils/src/bytecode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ pub enum FailedToCompressBytecodeError {
pub fn compress_bytecode(code: &[u8]) -> Result<Vec<u8>, FailedToCompressBytecodeError> {
validate_bytecode(code)?;

// Statistic is a hash map of values (number of occurences, first occurence position),
// Statistic is a hash map of values (number of occurrences, first occurrence position),
// this is needed to ensure that the determinism during sorting of the statistic, i.e.
// each element will have unique first occurence position
// each element will have unique first occurrence position
let mut statistic: HashMap<u64, (usize, usize)> = HashMap::new();
let mut dictionary: HashMap<u64, u16> = HashMap::new();
let mut encoded_data: Vec<u8> = Vec::new();
Expand Down

0 comments on commit 9b43ecb

Please sign in to comment.