mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
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: Onur Özkan <work@onurozkan.dev> Link: https://github.com/Rust-for-Linux/linux/issues/1186 Signed-off-by: Tong Li <djfkvcing117@gmail.com> Reviewed-by: Onur Özkan <work@onurozkan.dev> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
committed by
Christian Brauner
parent
deafd21efd
commit
d68a29a6a2
@@ -448,9 +448,9 @@ impl Drop for FileDescriptorReservation {
|
||||
}
|
||||
}
|
||||
|
||||
/// 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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user