Commit ad5b90ab10

Jonathan Marler <johnnymarler@gmail.com>
2021-10-25 21:10:11
multi_array_list: get function take self by value
1 parent 79702c1
Changed files (1)
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| {