summaryrefslogtreecommitdiffstats
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/rebel-lang/examples/repl.rs2
-rw-r--r--crates/rebel-lang/src/scope.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/rebel-lang/examples/repl.rs b/crates/rebel-lang/examples/repl.rs
index 4554486..a07c802 100644
--- a/crates/rebel-lang/examples/repl.rs
+++ b/crates/rebel-lang/examples/repl.rs
@@ -98,7 +98,7 @@ fn main() {
continue;
}
- let value = match ctx.run(&stmt) {
+ let value = match ctx.execute(&stmt) {
Ok(value) => value,
Err(err) => {
println!("Eval error: {err:?}");
diff --git a/crates/rebel-lang/src/scope.rs b/crates/rebel-lang/src/scope.rs
index 1d574b3..420c88f 100644
--- a/crates/rebel-lang/src/scope.rs
+++ b/crates/rebel-lang/src/scope.rs
@@ -15,7 +15,7 @@ pub struct Context {
}
impl Context {
- pub fn run(&mut self, stmt: &ast::BodyStmt) -> value::Result<Value> {
+ pub fn execute(&mut self, stmt: &ast::BodyStmt) -> value::Result<Value> {
match stmt {
ast::BodyStmt::Assign { dest, expr } => {
let value = Value::eval(self, expr)?;