Skip to content

Commit

Permalink
Fix File.init() API documentation (#53)
Browse files Browse the repository at this point in the history
Fix the copy-paste from TCP.init().
  • Loading branch information
mitchellh committed Aug 6, 2023
2 parents 0937e81 + eab5bea commit d228053
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/watcher/file.zig
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ pub fn File(comptime xev: type) type {
.threadpool = true,
});

/// Initialize a new TCP with the family from the given address. Only
/// the family is used, the actual address has no impact on the created
/// resource.
/// Initialize a File from a std.fs.File.
pub fn init(file: std.fs.File) !Self {
return .{
.fd = file.handle,
Expand Down

0 comments on commit d228053

Please sign in to comment.