1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fmt: align each contiguous field of struct. not the whole. (#7981)

This commit is contained in:
zakuro
2021-01-12 12:38:43 +09:00
committed by GitHub
parent 82a5300044
commit 33694665f0
41 changed files with 533 additions and 497 deletions

View File

@@ -10,9 +10,9 @@ pub struct array {
pub:
element_size int // size in bytes of one element in the array.
pub mut:
data voidptr
len int // length of the array.
cap int // capacity of the array.
data voidptr
len int // length of the array.
cap int // capacity of the array.
}
// array.data uses a void pointer, which allows implementing arrays without generics and without generating