Fix typos.

This commit is contained in:
Nick Lewycky
2019-08-01 12:15:11 -07:00
parent 1138a048d8
commit 5fed2cef03
2 changed files with 3 additions and 3 deletions

View File

@ -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::<String>() {