From 6e9e4fc2cf8e07fee5def5f42268e9866fd95cfb Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Mon, 27 Mar 2023 14:58:28 +0900 Subject: [PATCH] Fix typo in bytecode.rs occurence -> occurrence --- core/lib/utils/src/bytecode.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/utils/src/bytecode.rs b/core/lib/utils/src/bytecode.rs index 05cb5619f292..512acc54a3ab 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();