commit ad5b90ab1092cb50b38e4a1e6bbed463a38ef7cf (tree)
parent 79702c144d713de126d37637630c7b25ee9ecc82
Author: Jonathan Marler <johnnymarler@gmail.com>
Date: Mon, 25 Oct 2021 13:10:11 -0600
multi_array_list: get function take self by value
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/multi_array_list.zig b/lib/std/multi_array_list.zig
@@ -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| {