The file descriptor won't be closed if Dir::from_fd() succeeds, it will be closed by closedir(3), which will be involved when the returned Dir is dropped.
Checklist:
[x] I have read CONTRIBUTING.md
[ ] I have written necessary tests and rustdoc comments
[ ] A change log has been added if this PR modifies nix's API
What does this PR do
Corrects a wrong doc comment.
The file descriptor won't be closed if
Dir::from_fd()
succeeds, it will be closed byclosedir(3)
, which will be involved when the returnedDir
is dropped.Checklist:
CONTRIBUTING.md