Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Fix typo in bytecode.rs #16

Merged
merged 5 commits into from
Oct 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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