diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-05-03 23:15:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-03 23:15:17 -0400 |
| commit | 33fa87a9d8ffb824a0c7d2434849ccfdf482ed83 (patch) | |
| tree | f6b98520630e28d19377b7b54024f5db3cd29d28 /std/buf_set.zig | |
| parent | b9e320dd521751663db7b040e65c8ff5420c824a (diff) | |
| parent | e907c5cab971428607f85b6df4b4f7dc555775d3 (diff) | |
| download | zig-33fa87a9d8ffb824a0c7d2434849ccfdf482ed83.tar.gz zig-33fa87a9d8ffb824a0c7d2434849ccfdf482ed83.zip | |
Merge pull request #981 from BraedonWooding/ArrayIteratorUnifiedSyntax
ArrayList iterator, unifying API of HashMap and its derivatives
Diffstat (limited to 'std/buf_set.zig')
| -rw-r--r-- | std/buf_set.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/std/buf_set.zig b/std/buf_set.zig index 618b985c41..4b89d495da 100644 --- a/std/buf_set.zig +++ b/std/buf_set.zig @@ -38,7 +38,7 @@ pub const BufSet = struct { } pub fn count(self: &const BufSet) usize { - return self.hash_map.size; + return self.hash_map.count(); } pub fn iterator(self: &const BufSet) BufSetHashMap.Iterator { @@ -59,4 +59,3 @@ pub const BufSet = struct { return result; } }; - |
