From 1fe91d520410fb78318c2702f06262ca09ac980b Mon Sep 17 00:00:00 2001 From: wangjingcun Date: Fri, 6 Dec 2024 03:07:57 +0800 Subject: [PATCH] chore(crates/bytecode): fix some comments (#1851) Signed-off-by: wangjingcun --- crates/bytecode/src/eof/verification.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bytecode/src/eof/verification.rs b/crates/bytecode/src/eof/verification.rs index 516ec6a32c..d1c27be4e6 100644 --- a/crates/bytecode/src/eof/verification.rs +++ b/crates/bytecode/src/eof/verification.rs @@ -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", @@ -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); }