rhai/scripts/function_decl1.rhai
2022-01-20 12:06:36 +08:00

10 lines
149 B
Plaintext

// This script defines a function and calls it.
fn call_me() {
return 3;
}
let result = call_me();
print(`call_me() should be 3: ${result}`);