Files
pplus-library/mojo/probes/life-mut-arg.mojo
T
2026-10-06 09:57:04 -04:00

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)