mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Merge #619
619: Fix typos. r=nlewycky a=nlewycky Co-authored-by: Nick Lewycky <nick@wasmer.io>
This commit is contained in:
commit
a224d53c93
@ -247,7 +247,7 @@ mod tests {
|
|||||||
// verify it returns the correct value
|
// verify it returns the correct value
|
||||||
assert_eq!(value, 7);
|
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);
|
assert_eq!(get_points_used(&instance), 74);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -276,7 +276,7 @@ mod tests {
|
|||||||
_ => unreachable!(),
|
_ => 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.
|
assert_eq!(get_points_used(&instance), 109); // Used points will be slightly more than `limit` because of the way we do gas checking.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ impl std::fmt::Display for RuntimeError {
|
|||||||
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||||
match self {
|
match self {
|
||||||
RuntimeError::Trap { ref msg } => {
|
RuntimeError::Trap { ref msg } => {
|
||||||
write!(f, "WebAssembly trap occured during runtime: {}", msg)
|
write!(f, "WebAssembly trap occurred during runtime: {}", msg)
|
||||||
}
|
}
|
||||||
RuntimeError::Error { data } => {
|
RuntimeError::Error { data } => {
|
||||||
if let Some(s) = data.downcast_ref::<String>() {
|
if let Some(s) = data.downcast_ref::<String>() {
|
||||||
|
Loading…
Reference in New Issue
Block a user