From 9b43ecbb8a128373cc87cf93c79879d4b38a3de1 Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Fri, 13 Oct 2023 03:40:52 +0900 Subject: [PATCH] chore: Fix typo in bytecode.rs (#16) occurence -> occurrence Co-authored-by: Roman Brodetski Co-authored-by: Danil Co-authored-by: Igor Borodin --- 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 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();