diff --git a/lib/middleware-common/src/metering.rs b/lib/middleware-common/src/metering.rs index 08806f593..e9f02d509 100644 --- a/lib/middleware-common/src/metering.rs +++ b/lib/middleware-common/src/metering.rs @@ -247,7 +247,7 @@ mod tests { // verify it returns the correct value assert_eq!(value, 7); - // verify is uses the correct number of points + // verify it used the correct number of points assert_eq!(get_points_used(&instance), 74); } @@ -276,7 +276,7 @@ mod tests { _ => unreachable!(), } - // verify is uses the correct number of points + // verify it used the correct number of points assert_eq!(get_points_used(&instance), 109); // Used points will be slightly more than `limit` because of the way we do gas checking. } diff --git a/lib/runtime-core/src/error.rs b/lib/runtime-core/src/error.rs index c93115d14..f07620b23 100644 --- a/lib/runtime-core/src/error.rs +++ b/lib/runtime-core/src/error.rs @@ -134,7 +134,7 @@ impl std::fmt::Display for RuntimeError { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { match self { RuntimeError::Trap { ref msg } => { - write!(f, "WebAssembly trap occured during runtime: {}", msg) + write!(f, "WebAssembly trap occurred during runtime: {}", msg) } RuntimeError::Error { data } => { if let Some(s) = data.downcast_ref::() {