Files
pplus-core/mojo/probes/life-mut-arg.mojo
T
2026-10-05 03:03:38 +00: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)