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(crates/bytecode): fix some comments #1851

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 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
Loading