Skip to content

Commit fa0d0fa

Browse files
committed
don't mark test local functions as pub
marking them as pub causes them to be present in the docs
1 parent f1a481c commit fa0d0fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DeviceTree.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ test compatibleMatchIterator {
373373
try lookup.put(std.testing.allocator, "riscv,plic0", {});
374374

375375
const match_function = struct {
376-
pub fn match(hash_set: *const std.StringHashMapUnmanaged(void), compatible: [:0]const u8) bool {
376+
fn match(hash_set: *const std.StringHashMapUnmanaged(void), compatible: [:0]const u8) bool {
377377
return hash_set.contains(compatible);
378378
}
379379
}.match;

src/Node.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ pub const Node = enum(u32) {
354354
try lookup.put(std.testing.allocator, "pci-host-ecam-generic", {});
355355

356356
const match_function = struct {
357-
pub fn match(hash_set: *const std.StringHashMapUnmanaged(void), compatible: [:0]const u8) bool {
357+
fn match(hash_set: *const std.StringHashMapUnmanaged(void), compatible: [:0]const u8) bool {
358358
return hash_set.contains(compatible);
359359
}
360360
}.match;

0 commit comments

Comments
 (0)