all: update attributes to use new syntax

This commit is contained in:
Joe C 2023-11-15 16:16:01 +11:00 committed by GitHub
parent dd81cb98c6
commit 757929392e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
739 changed files with 2982 additions and 2982 deletions

View file

@ -975,7 +975,7 @@ fn test_in_struct() {
assert baz.bar[0] == 3
}
[direct_array_access]
@[direct_array_access]
fn test_direct_modification() {
mut foo := [2, 0, 5]
foo[1] = 3
@ -1208,7 +1208,7 @@ fn test_array_last() {
assert s.last().val == 'a'
}
[direct_array_access]
@[direct_array_access]
fn test_direct_array_access() {
mut a := [11, 22, 33, 44]
assert a[0] == 11
@ -1221,7 +1221,7 @@ fn test_direct_array_access() {
assert a == [21, 24, 14, 20]
}
[direct_array_access]
@[direct_array_access]
fn test_direct_array_access_via_ptr() {
mut b := [11, 22, 33, 44]
unsafe {