mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
use ++ everywhere
This commit is contained in:
@@ -3,7 +3,7 @@ fn test_pointer_arithmetic() {
|
||||
arr := [1,2,3,4]
|
||||
unsafe {
|
||||
mut parr := *int(arr.data)
|
||||
parr += 1
|
||||
parr++
|
||||
assert 2 == *parr
|
||||
parr++
|
||||
assert 3 == *parr
|
||||
|
Reference in New Issue
Block a user