10 lines
140 B
Mojo
10 lines
140 B
Mojo
# probe: a mut argument changes the caller's variable
|
|
def bump(mut x: Int):
|
|
x += 1
|
|
|
|
|
|
def main():
|
|
var n = 1
|
|
bump(n)
|
|
print(n)
|