Make DynamicBitSet.iterator take self as const

This commit is contained in:
Chris Gregory 2021-08-03 22:49:10 -07:00 committed by Veikka Tuominen
parent 011a468381
commit fdd97244fd

View File

@ -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);
}