Skip to content

Commit aaa8eb2

Browse files
dymenshenfbq
authored andcommitted
rust: error: Markdown style nit
This patch fixes a trivial markdown style nit in the `SAFETY` comment. Signed-off-by: Manmohan Shukla <[email protected]> Reviewed-by: Jianguo Bao <[email protected]> Reviewed-by: Finn Behrens <[email protected]> Reviewed-by: Benno Lossin <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Reviewed-by: Vincenzo Palazzo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 91754ad commit aaa8eb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl Error {
133133
/// Returns the error encoded as a pointer.
134134
#[allow(dead_code)]
135135
pub(crate) fn to_ptr<T>(self) -> *mut T {
136-
// SAFETY: self.0 is a valid error due to its invariant.
136+
// SAFETY: `self.0` is a valid error due to its invariant.
137137
unsafe { bindings::ERR_PTR(self.0.into()) as *mut _ }
138138
}
139139

0 commit comments

Comments
 (0)