Fix typo in warning message for --invoke (#530)

This was supposed to be `--invoke`, not `--render`
This commit is contained in:
Alex Crichton
2019-11-08 17:41:05 -06:00
committed by GitHub
parent 7982d02e45
commit 5a5f241f98

View File

@@ -397,7 +397,7 @@ fn invoke_export(
let binding = data.binding_for_export(&mut handle, name)?;
if binding.param_types()?.len() > 0 {
eprintln!(
"warning: using `--render` with a function that takes arguments \
"warning: using `--invoke` with a function that takes arguments \
is experimental and may break in the future"
);
}
@@ -436,7 +436,7 @@ fn invoke_export(
.with_context(|| format!("failed to invoke `{}`", name))?;
if results.len() > 0 {
eprintln!(
"warning: using `--render` with a function that returns values \
"warning: using `--invoke` with a function that returns values \
is experimental and may break in the future"
);
}