From 887ca60a69f28a82aaf90b59036486a117e4206f Mon Sep 17 00:00:00 2001 From: futurehua Date: Thu, 23 Jul 2026 00:17:00 +0800 Subject: [PATCH] Fix ioctl docs link and fd module wording --- README.md | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c3df9a8c8..9a2e36257 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ API modules are conditional with cargo feature flags. [`rustix::io`]: https://docs.rs/rustix/*/rustix/io/index.html [`rustix::fd`]: https://docs.rs/rustix/*/rustix/fd/index.html [`rustix::ffi`]: https://docs.rs/rustix/*/rustix/ffi/index.html -[`rustix::ioctl`]: https://docs.rs/rustix/*/rustix/ffi/ioctl.html +[`rustix::ioctl`]: https://docs.rs/rustix/*/rustix/ioctl/index.html ## 64-bit Large File Support (LFS) and Year 2038 (y2038) support diff --git a/src/lib.rs b/src/lib.rs index b04dcb127..f928311ab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -198,11 +198,11 @@ mod backend; /// Export the `*Fd` types and traits that are used in rustix's public API. /// -/// This module exports the types and traits from [`std::os::fd`], or polyills +/// This module exports the types and traits from [`std::os::fd`], or polyfills /// on Rust < 1.66 or on Windows. /// /// On Windows, the polyfill consists of aliases of the socket types and -/// traits, For example, [`OwnedSocket`] is aliased to `OwnedFd`, and so on, +/// traits. For example, [`OwnedSocket`] is aliased to `OwnedFd`, and so on, /// and there are blanket impls for `AsFd` etc. that map to `AsSocket` impls. /// These blanket impls suffice for using the traits, however not for /// implementing them, so this module also exports `AsSocket` and the other