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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user