Skip to content

Commit

Permalink
chore(crates/bytecode): fix some comments (#1851)
Browse files Browse the repository at this point in the history
Signed-off-by: wangjingcun <[email protected]>
  • Loading branch information
wangjingcun authored Dec 5, 2024
1 parent e51d128 commit 1fe91d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bytecode/src/eof/verification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ impl fmt::Display for EofValidationError {
Self::CodeSectionNotAccessed => "Code section was not accessed",
Self::InvalidTypesSection => "Invalid types section",
Self::InvalidFirstTypesSection => "Invalid first types section",
Self::MaxStackMismatch => "Max stack element mismatchs",
Self::MaxStackMismatch => "Max stack element mismatches",
Self::NoCodeSections => "No code sections",
Self::SubContainerCalledInTwoModes => "Sub container called in two modes",
Self::SubContainerNotAccessed => "Sub container not accessed",
Expand Down Expand Up @@ -543,7 +543,7 @@ pub fn validate_eof_code(
return Err(EofValidationError::CodeSectionOutOfBounds);
};

// CALLF operand must not point to to a section with 0x80 as outputs (non-returning)
// CALLF operand must not point to a section with 0x80 as outputs (non-returning)
if target_types.is_non_returning() {
return Err(EofValidationError::CALLFNonReturningFunction);
}
Expand Down

0 comments on commit 1fe91d5

Please sign in to comment.