mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
Change "# will print 1, 2, 3, 4" to "# will print 1, 2, 3"
@@ -331,7 +331,7 @@ You can assign to x[n], modifying the memory contents. There is no bounds checki
|
||||
```py
|
||||
@micropython.viper
|
||||
def myfunction( x:ptr32, b:bool )->int:
|
||||
print(x[0], x[1], x[2] ) # will print 1, 2, 3, 4
|
||||
print(x[0], x[1], x[2] ) # will print 1, 2, 3
|
||||
return x[1]
|
||||
myfunction( array.array("l", (1,2,3,4)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user