Skip to content

Commit 4b832b4

Browse files
committed
rust: kernel: clean rustdoc warnings
Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 5f9ad6c commit 4b832b4

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

rust/kernel/file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use core::{mem::ManuallyDrop, ops::Deref};
1212
///
1313
/// # Invariants
1414
///
15-
/// The pointer [`File::ptr`] is non-null and valid. Its reference count is also non-zero.
15+
/// The pointer `File::ptr` is non-null and valid. Its reference count is also non-zero.
1616
pub struct File {
1717
pub(crate) ptr: *mut bindings::file,
1818
}

rust/kernel/file_operations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use crate::{
2525
///
2626
/// # Invariants
2727
///
28-
/// The pointer [`PollTable::ptr`] is null or valid.
28+
/// The pointer `PollTable::ptr` is null or valid.
2929
pub struct PollTable {
3030
ptr: *mut bindings::poll_table_struct,
3131
}

rust/kernel/iov_iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extern "C" {
2929
///
3030
/// # Invariants
3131
///
32-
/// The pointer [`IovIter::ptr`] is non-null and valid.
32+
/// The pointer `IovIter::ptr` is non-null and valid.
3333
pub struct IovIter {
3434
ptr: *mut bindings::iov_iter,
3535
}

rust/kernel/pages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extern "C" {
3131
///
3232
/// # Invariants
3333
///
34-
/// The pointer [`Pages::pages`] is valid and points to 2^ORDER pages.
34+
/// The pointer `Pages::pages` is valid and points to 2^ORDER pages.
3535
pub struct Pages<const ORDER: u32> {
3636
pages: *mut bindings::page,
3737
}

rust/kernel/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extern "C" {
2222
///
2323
/// # Invariants
2424
///
25-
/// The pointer [`Task::ptr`] is non-null and valid. Its reference count is also non-zero.
25+
/// The pointer `Task::ptr` is non-null and valid. Its reference count is also non-zero.
2626
///
2727
/// # Examples
2828
///

0 commit comments

Comments
 (0)