Skip to content

Commit 5a7a390

Browse files
committed
Make Iterator public
1 parent 6da2e34 commit 5a7a390

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/maxminddb.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pub const geoip2 = @import("geoip2.zig");
1010
pub const Error = reader.ReadError || decoder.DecodeError;
1111
pub const Reader = reader.Reader;
1212
pub const Metadata = reader.Metadata;
13+
pub const Iterator = reader.Iterator;
1314
pub const Network = net.Network;
1415

1516
test {

src/reader.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ const WithinNode = struct {
326326
node: usize,
327327
};
328328

329-
fn Iterator(comptime T: type) type {
329+
pub fn Iterator(comptime T: type) type {
330330
return struct {
331331
reader: *Reader,
332332
node_count: usize,

0 commit comments

Comments
 (0)