Skip to content

Commit 915168d

Browse files
Valentin Obstojeda
authored andcommitted
rust: kernel: add blank lines in front of code blocks
Throughout the code base, blank lines are used before starting a code block. Adapt outliers to improve consistency within the kernel crate. Signed-off-by: Valentin Obst <kernel@valentinobst.de> Reviewed-by: Trevor Gross <tmgross@umich.edu> Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Link: https://lore.kernel.org/r/20240131-doc-fixes-v3-v3-9-0c8af94ed7de@valentinobst.de Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent e83bbef commit 915168d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rust/kernel/types.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ impl ForeignOwnable for () {
9090
///
9191
/// In the example below, we have multiple exit paths and we want to log regardless of which one is
9292
/// taken:
93+
///
9394
/// ```
9495
/// # use kernel::types::ScopeGuard;
9596
/// fn example1(arg: bool) {
@@ -108,6 +109,7 @@ impl ForeignOwnable for () {
108109
///
109110
/// In the example below, we want to log the same message on all early exits but a different one on
110111
/// the main exit path:
112+
///
111113
/// ```
112114
/// # use kernel::types::ScopeGuard;
113115
/// fn example2(arg: bool) {
@@ -129,6 +131,7 @@ impl ForeignOwnable for () {
129131
///
130132
/// In the example below, we need a mutable object (the vector) to be accessible within the log
131133
/// function, so we wrap it in the [`ScopeGuard`]:
134+
///
132135
/// ```
133136
/// # use kernel::types::ScopeGuard;
134137
/// fn example3(arg: bool) -> Result {

0 commit comments

Comments
 (0)