From 5fed2cef035cd5eae89278fe1b35c8c97189ab04 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Thu, 1 Aug 2019 12:15:11 -0700 Subject: [PATCH] Fix typos. --- lib/middleware-common/src/metering.rs | 4 ++-- lib/runtime-core/src/error.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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::() {