Skip to content

Commit f54c750

Browse files
committed
rust: task: add missing Markdown code spans and intra-doc links
Add missing Markdown code spans and also convert them into intra-doc links. This was found using the Clippy `doc_markdown` lint, which we may want to enable. Fixes: e0020ba ("rust: add PidNamespace") Reviewed-by: Benno Lossin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 1dbaf8b commit f54c750

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/kernel/task.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ impl Task {
158158
}
159159
}
160160

161-
/// Returns a PidNamespace reference for the currently executing task's/thread's pid namespace.
161+
/// Returns a [`PidNamespace`] reference for the currently executing task's/thread's pid namespace.
162162
///
163163
/// This function can be used to create an unbounded lifetime by e.g., storing the returned
164-
/// PidNamespace in a global variable which would be a bug. So the recommended way to get the
164+
/// [`PidNamespace`] in a global variable which would be a bug. So the recommended way to get the
165165
/// current task's/thread's pid namespace is to use the [`current_pid_ns`] macro because it is
166166
/// safe.
167167
///

0 commit comments

Comments
 (0)