mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-25 22:51:32 +00:00
Replace "be the i32 type" with "be an i32" in error messages.
This commit is contained in:
@ -148,7 +148,7 @@ impl LocalBacking {
|
|||||||
Initializer::Const(Value::I32(offset)) => offset as u32,
|
Initializer::Const(Value::I32(offset)) => offset as u32,
|
||||||
Initializer::Const(_) => {
|
Initializer::Const(_) => {
|
||||||
return Err(vec![LinkError::Generic {
|
return Err(vec![LinkError::Generic {
|
||||||
message: "a const initializer must be the i32 type".to_string(),
|
message: "a const initializer must be an i32".to_string(),
|
||||||
}]);
|
}]);
|
||||||
}
|
}
|
||||||
Initializer::GetGlobal(import_global_index) => {
|
Initializer::GetGlobal(import_global_index) => {
|
||||||
@ -209,7 +209,7 @@ impl LocalBacking {
|
|||||||
Initializer::Const(Value::I32(offset)) => offset as u32,
|
Initializer::Const(Value::I32(offset)) => offset as u32,
|
||||||
Initializer::Const(_) => {
|
Initializer::Const(_) => {
|
||||||
return Err(vec![LinkError::Generic {
|
return Err(vec![LinkError::Generic {
|
||||||
message: "a const initializer must be the i32 type".to_string(),
|
message: "a const initializer must be an i32".to_string(),
|
||||||
}]);
|
}]);
|
||||||
}
|
}
|
||||||
Initializer::GetGlobal(import_global_index) => {
|
Initializer::GetGlobal(import_global_index) => {
|
||||||
@ -282,7 +282,7 @@ impl LocalBacking {
|
|||||||
Initializer::Const(Value::I32(offset)) => offset as u32,
|
Initializer::Const(Value::I32(offset)) => offset as u32,
|
||||||
Initializer::Const(_) => {
|
Initializer::Const(_) => {
|
||||||
return Err(vec![LinkError::Generic {
|
return Err(vec![LinkError::Generic {
|
||||||
message: "a const initializer must be the i32 type".to_string(),
|
message: "a const initializer must be an i32".to_string(),
|
||||||
}]);
|
}]);
|
||||||
}
|
}
|
||||||
Initializer::GetGlobal(import_global_index) => {
|
Initializer::GetGlobal(import_global_index) => {
|
||||||
@ -340,7 +340,7 @@ impl LocalBacking {
|
|||||||
Initializer::Const(Value::I32(offset)) => offset as u32,
|
Initializer::Const(Value::I32(offset)) => offset as u32,
|
||||||
Initializer::Const(_) => {
|
Initializer::Const(_) => {
|
||||||
return Err(vec![LinkError::Generic {
|
return Err(vec![LinkError::Generic {
|
||||||
message: "a const initializer must be the i32 type".to_string(),
|
message: "a const initializer be an i32".to_string(),
|
||||||
}]);
|
}]);
|
||||||
}
|
}
|
||||||
Initializer::GetGlobal(import_global_index) => {
|
Initializer::GetGlobal(import_global_index) => {
|
||||||
|
Reference in New Issue
Block a user