diff --git a/lib/std/bit_set.zig b/lib/std/bit_set.zig index f7339bfdcf..261c6af2df 100644 --- a/lib/std/bit_set.zig +++ b/lib/std/bit_set.zig @@ -872,7 +872,7 @@ pub const DynamicBitSet = struct { /// ascending order. Modifications to the underlying bit set may /// or may not be observed by the iterator. Resizing the underlying /// bit set invalidates the iterator. - pub fn iterator(self: *Self, comptime options: IteratorOptions) Iterator(options) { + pub fn iterator(self: *const Self, comptime options: IteratorOptions) Iterator(options) { return self.unmanaged.iterator(options); }