[PATCH v2 1/2] rust: io: remove square brackets from pci::Bar reference
From: Marko Turk
Date: Mon Jan 05 2026 - 16:38:29 EST
Remove square brackets since this section is not a part of doc-comment
so the reference will not be converted to a link in the generated docs.
Fixes: ce30d94e6855 ("rust: add `io::{Io, IoRaw}` base types")
Suggested-by: Danilo Krummrich <dakr@xxxxxxxxxx>
Signed-off-by: Marko Turk <mt@xxxxxxxxxxxxxx>
---
Changes since v1:
- pci::Bar is re-exported so no need to change this to pci::io::Bar
- instead removed the square brackets as suggested by Danilo
Link to v1: https://lore.kernel.org/lkml/20260103143119.96095-1-mt@xxxxxxxxxxxxxx/
rust/kernel/io.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/kernel/io.rs b/rust/kernel/io.rs
index 98e8b84e68d1..a97eb44a9a87 100644
--- a/rust/kernel/io.rs
+++ b/rust/kernel/io.rs
@@ -87,7 +87,7 @@ pub fn maxsize(&self) -> usize {
/// };
/// use core::ops::Deref;
///
-/// // See also [`pci::Bar`] for a real example.
+/// // See also `pci::Bar` for a real example.
/// struct IoMem<const SIZE: usize>(IoRaw<SIZE>);
///
/// impl<const SIZE: usize> IoMem<SIZE> {
--
2.51.0