Unverified Commit d68a29a6 authored by Tong Li's avatar Tong Li Committed by Christian Brauner
Browse files

rust: file: add intra-doc link for 'EBADF'



The `BadFdError` doc comment mentions the `EBADF` constant but does
not currently provide a navigation target for readers of the
generated docs. Turning the references into intra-doc links matches
the rest of the module and makes the documentation easier to
explore.

Suggested-by: default avatarOnur Özkan <work@onurozkan.dev>
Link: https://github.com/Rust-for-Linux/linux/issues/1186


Signed-off-by: default avatarTong Li <djfkvcing117@gmail.com>
Reviewed-by: default avatarOnur Özkan <work@onurozkan.dev>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent deafd21e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -448,9 +448,9 @@ fn drop(&mut self) {
    }
}

/// Represents the `EBADF` error code.
/// Represents the [`EBADF`] error code.
///
/// Used for methods that can only fail with `EBADF`.
/// Used for methods that can only fail with [`EBADF`].
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct BadFdError;