Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › Build › LazyPath › dupeInner Private Function dupeInner Doc Source Private Function std.Build.LazyPath.dupeInner
fn dupeInner (lazy_path : LazyPath , arena : Allocator ) LazyPath Params File Build.zig: 2387
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405 fn dupeInner (lazy_path : LazyPath , arena : Allocator ) LazyPath {
return switch (lazy_path ) {
.src_path => |sp | .{ .src_path = .{
.owner = sp .owner ,
.sub_path = sp .owner .graph .dupePath (sp .sub_path ),
} },
.cwd_relative => |p | .{ .cwd_relative = Graph .dupePathInner (arena , p ) },
.relative => |r | .{ .relative = r },
.generated => |gen | .{ .generated = .{
.index = gen .index ,
.up = gen .up ,
.sub_path = Graph .dupePathInner (arena , gen .sub_path ),
} },
.dependency => |dep | .{ .dependency = .{
.dependency = dep .dependency ,
.sub_path = Graph .dupePathInner (arena , dep .sub_path ),
} },
};
}