Skip to content

Commit 83fb616

Browse files
ojedaDanilo Krummrich
authored andcommitted
rust: io: fix broken intra-doc link to missing flags module
There is no `mod flags` in this case, unlike others. Instead, they are associated constants for the `Flags` type. Thus reword the sentence to fix the broken intra-doc link, providing an example of constant and linking to it to clarify which ones we are referring to. Fixes: 493fc33 ("rust: io: add resource abstraction") Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Link: https://lore.kernel.org/r/20250722085500.1360401-1-ojeda@kernel.org Signed-off-by: Danilo Krummrich <dakr@kernel.org>
1 parent 696b2a6 commit 83fb616

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rust/kernel/io/resource.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ unsafe impl Sync for Resource {}
177177
///
178178
/// They can be combined with the operators `|`, `&`, and `!`.
179179
///
180-
/// Values can be used from the [`flags`] module.
180+
/// Values can be used from the associated constants such as
181+
/// [`Flags::IORESOURCE_IO`].
181182
#[derive(Clone, Copy, PartialEq)]
182183
pub struct Flags(c_ulong);
183184

0 commit comments

Comments
 (0)