Fix use of invalidFmtError

main
copygirl 10 months ago
parent 846b738bf5
commit b20caf4e36
  1. 2
      src/path.zig

@ -256,7 +256,7 @@ pub fn format(
else if (@hasDecl(FormatOptions, fmt) and @TypeOf(@field(FormatOptions, fmt)) == FormatOptions)
@field(FormatOptions, fmt)
else
std.fmt.invalidFmtError(fmt, Path);
std.fmt.invalidFmtError(fmt, self);
try self.write(opt, writer);
}

Loading…
Cancel
Save