From fdd97244fda948e0033034aba8042c8fdfb5d484 Mon Sep 17 00:00:00 2001 From: Chris Gregory Date: Tue, 3 Aug 2021 22:49:10 -0700 Subject: [PATCH] Make DynamicBitSet.iterator take self as const --- lib/std/bit_set.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }