This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,9 @@
|
||||
# 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)
|
||||
Reference in new issue
Block a user