edlang/programs/refs.ed

14 lines
172 B
Rust
Raw Normal View History

2024-02-17 16:29:18 +00:00
mod Main {
pub fn main() -> i64 {
let mut a: i64 = 0;
hello(&mut a);
return a;
}
2024-02-19 20:09:35 +00:00
pub fn hello(a: &mut i64) {
2024-02-17 16:29:18 +00:00
*a = 2;
}
}