diff --git a/src/codegen/encoding/scale_encoding.rs b/src/codegen/encoding/scale_encoding.rs index d7895db2d..2e52ea6c0 100644 --- a/src/codegen/encoding/scale_encoding.rs +++ b/src/codegen/encoding/scale_encoding.rs @@ -445,7 +445,7 @@ impl AbiEncoding for ScaleEncoding { // `codegen::abi_encode()` also returns the actual encoded size, // so slightly overestimating it shouldn't matter. // However, the actual length of the encoded data produced by `codegen::abi_encode()` - // is ignored in some places, wich results in buggy contracts if we have not an exact estimate. + // is ignored in some places, which results in buggy contracts if we have not an exact estimate. // Once this is fixed (the encoded size return by `codegen::abi_encode()` must never be ignored), // this can just be always 4 bytes . encode_compact(size, None, None, vartab, cfg) diff --git a/src/codegen/undefined_variable.rs b/src/codegen/undefined_variable.rs index 9f152e199..25618dc63 100644 --- a/src/codegen/undefined_variable.rs +++ b/src/codegen/undefined_variable.rs @@ -72,7 +72,7 @@ pub fn check_variables_in_expression( instr.recurse_expressions(&mut params, find_undefined_variables_in_expression); } -/// Auxiliar function for expression.recurse. It checks if a variable is read before being defined +/// Auxiliary function for expression.recurse. It checks if a variable is read before being defined pub fn find_undefined_variables_in_expression( exp: &Expression, ctx: &mut FindUndefinedVariablesParams,