zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit fdd97244fda948e0033034aba8042c8fdfb5d484 (tree)
parent 011a468381a0217bff7f98817c0df593cbcc85ec
Author: Chris Gregory <czipperz@gmail.com>
Date:   Tue,  3 Aug 2021 22:49:10 -0700

Make DynamicBitSet.iterator take self as const

Diffstat:
Mlib/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 @@ -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); }