| ... | ... | @@ -2903,9 +2903,10 @@ pub fn WindowIterator(comptime T: type) type { |
| 2903 | 2903 | |
| 2904 | 2904 | const Self = @This(); |
| 2905 | 2905 | |
| 2906 | | /// Returns a slice of the first window. This never fails. |
| 2906 | /// Returns a slice of the first window. |
| 2907 | 2907 | /// Call this only to get the first window and then use `next` to get |
| 2908 | 2908 | /// all subsequent windows. |
| 2909 | /// Asserts that iteration has not begun. |
| 2909 | 2910 | pub fn first(self: *Self) []const T { |
| 2910 | 2911 | assert(self.index.? == 0); |
| 2911 | 2912 | return self.next().?; |
| ... | ... | @@ -3037,8 +3038,9 @@ pub fn SplitIterator(comptime T: type, comptime delimiter_type: DelimiterType) t |
| 3037 | 3038 | |
| 3038 | 3039 | const Self = @This(); |
| 3039 | 3040 | |
| 3040 | | /// Returns a slice of the first field. This never fails. |
| 3041 | /// Returns a slice of the first field. |
| 3041 | 3042 | /// Call this only to get the first field and then use `next` to get all subsequent fields. |
| 3043 | /// Asserts that iteration has not begun. |
| 3042 | 3044 | pub fn first(self: *Self) []const T { |
| 3043 | 3045 | assert(self.index.? == 0); |
| 3044 | 3046 | return self.next().?; |
| ... | ... | @@ -3101,8 +3103,9 @@ pub fn SplitBackwardsIterator(comptime T: type, comptime delimiter_type: Delimit |
| 3101 | 3103 | |
| 3102 | 3104 | const Self = @This(); |
| 3103 | 3105 | |
| 3104 | | /// Returns a slice of the first field. This never fails. |
| 3106 | /// Returns a slice of the first field. |
| 3105 | 3107 | /// Call this only to get the first field and then use `next` to get all subsequent fields. |
| 3108 | /// Asserts that iteration has not begun. |
| 3106 | 3109 | pub fn first(self: *Self) []const T { |
| 3107 | 3110 | assert(self.index.? == self.buffer.len); |
| 3108 | 3111 | return self.next().?; |