rhai/scripts/function_decl1.rhai
2020-03-16 14:50:12 +08:00

8 lines
114 B
Plaintext

// This script defines a function and calls it
fn bob() {
return 3;
}
print(bob()); // should print 3