diff --git a/core/lib/utils/src/bytecode.rs b/core/lib/utils/src/bytecode.rs index 249af20b1b22..66101da4f5bc 100644 --- a/core/lib/utils/src/bytecode.rs +++ b/core/lib/utils/src/bytecode.rs @@ -31,9 +31,9 @@ pub enum FailedToCompressBytecodeError { pub fn compress_bytecode(code: &[u8]) -> Result, 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 = HashMap::new(); let mut dictionary: HashMap = HashMap::new(); let mut encoded_data: Vec = Vec::new();