document why these ignore the error
2 files changed, 2 insertions(+), 0 deletions(-)
Dir.zig+1
| ... | ... | @@ -10,6 +10,7 @@ const os = builtin.target.os.tag; |
| 10 | 10 | |
| 11 | 11 | fd: nfs.Handle, |
| 12 | 12 | |
| 13 | // Resource allocation may fail; resource deallocation must succeed. |
| 13 | 14 | pub fn close(self: Dir) void { |
| 14 | 15 | if (os == .linux) |
| 15 | 16 | sys_linux.close(@intFromEnum(self.fd)) catch {}; |
File.zig+1
| ... | ... | @@ -12,6 +12,7 @@ const os = builtin.target.os.tag; |
| 12 | 12 | |
| 13 | 13 | fd: nfs.Handle, |
| 14 | 14 | |
| 15 | // Resource allocation may fail; resource deallocation must succeed. |
| 15 | 16 | pub fn close(self: File) void { |
| 16 | 17 | if (os == .linux) |
| 17 | 18 | sys_linux.close(@intFromEnum(self.fd)) catch {}; |