summaryrefslogtreecommitdiff
path: root/core/ops_builtin.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/ops_builtin.rs')
-rw-r--r--core/ops_builtin.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/ops_builtin.rs b/core/ops_builtin.rs
index 023edc60e..ea539bc0a 100644
--- a/core/ops_builtin.rs
+++ b/core/ops_builtin.rs
@@ -57,10 +57,9 @@ pub fn op_close(
/// Builtin utility to print to stdout/stderr
pub fn op_print(
_state: &mut OpState,
- args: (String, bool),
- _: (),
+ msg: String,
+ is_err: bool,
) -> Result<(), AnyError> {
- let (msg, is_err) = args;
if is_err {
eprint!("{}", msg);
stderr().flush().unwrap();