rhai/scripts/function_decl1.rhai
2020-03-18 10:40:07 +08:00

8 lines
114 B
Plaintext

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