Updated commands and export syntax

This commit is contained in:
2026-05-16 11:31:17 +02:00
parent f5c9fde94a
commit feda2a3a55
2 changed files with 23 additions and 13 deletions
+7
View File
@@ -30,6 +30,13 @@ pub i32 get_version() {
}
```
You can also point to a specific point (super or crate, or a custom path):
```mist
pub(crate) i32 get_version() {
return 1;
}
```
## Mutable Parameters
Parameters follow Rust’s ownership rules but use Mist’s local variable syntax. Use `mut` to allow a function to modify its local binding of a value.