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. Private Function
isBadFilename
Private Function
std.zip.isBadFilename
fnisBadFilename(filename: []constu8) bool
Params
filename: []constu8
File
zip.zig:167
167168169170171172173174175176177178
fnisBadFilename(filename: []constu8) bool {
if (filename.len == 0orfilename[0] == '/')
returntrue;
varit = std.mem.splitScalar(u8, filename, '/');
while (it.next()) |part| {
if (std.mem.eql(u8, part, ".."))
returntrue;
}
returnfalse;
}