diff options
author | 2025-07-22 10:54:59 +0200 | |
---|---|---|
committer | 2025-07-22 11:08:59 +0200 | |
commit | 83fb6160727874a588d70b727bc34f367362e6ed (patch) | |
tree | f294eb98a6a0080e61148f0c72f535627f73add8 | |
parent | rust: io: mem: enable IoRequest doc-tests (diff) | |
download | wireguard-linux-83fb6160727874a588d70b727bc34f367362e6ed.tar.xz wireguard-linux-83fb6160727874a588d70b727bc34f367362e6ed.zip |
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: 493fc33ec252 ("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>
-rw-r--r-- | rust/kernel/io/resource.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/kernel/io/resource.rs b/rust/kernel/io/resource.rs index 1d5f367a6e8a..bea3ee0ed87b 100644 --- a/rust/kernel/io/resource.rs +++ b/rust/kernel/io/resource.rs @@ -177,7 +177,8 @@ unsafe impl Sync for Resource {} /// /// They can be combined with the operators `|`, `&`, and `!`. /// -/// Values can be used from the [`flags`] module. +/// Values can be used from the associated constants such as +/// [`Flags::IORESOURCE_IO`]. #[derive(Clone, Copy, PartialEq)] pub struct Flags(c_ulong); |