rhai/scripts/function_decl1.rhai

10 lines
120 B
Plaintext
Raw Normal View History

2020-03-16 07:50:12 +01:00
// This script defines a function and calls it
2016-03-02 03:36:46 +01:00
fn bob() {
2020-03-16 07:50:12 +01:00
return 3;
2016-03-02 03:36:46 +01:00
}
2020-05-02 10:23:36 +02:00
print("bob() should be 3:");
print(bob());