mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
multi_array_list: get function take self by value
This commit is contained in:
parent
79702c144d
commit
ad5b90ab10
@ -151,7 +151,7 @@ pub fn MultiArrayList(comptime S: type) type {
|
||||
}
|
||||
|
||||
/// Obtain all the data for one array element.
|
||||
pub fn get(self: *Self, index: usize) S {
|
||||
pub fn get(self: Self, index: usize) S {
|
||||
const slices = self.slice();
|
||||
var result: S = undefined;
|
||||
inline for (fields) |field_info, i| {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user