rhai/scripts/function_decl1.rhai

8 lines
114 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-03-16 07:50:12 +01:00
print(bob()); // should print 3