nix-rust / nix

Rust friendly bindings to *nix APIs
MIT License
2.67k stars 667 forks source link

docs: correct a doc comment #2317

Closed SteveLauC closed 8 months ago

SteveLauC commented 9 months ago

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 by closedir(3), which will be involved when the returned Dir is dropped.

Checklist: