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 <manmshuk@gmail.com> Reviewed-by: Jianguo Bao <roidinev@gmail.com> Reviewed-by: Finn Behrens <me@kloenk.dev> Reviewed-by: Benno Lossin <benno.lossin@proton.me> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com> Link: https://lore.kernel.org/r/20230906204857.85619-1-manmshuk@gmail.com
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)