multi_array_list: get function take self by value

This commit is contained in:
Jonathan Marler 2021-10-25 13:10:11 -06:00 committed by Andrew Kelley
parent 79702c144d
commit ad5b90ab10

View File

@ -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| {