Commit 2a7e0a52 authored by Manmohan Shukla's avatar Manmohan Shukla Committed by Miguel Ojeda

rust: error: Markdown style nit

This patch fixes a trivial markdown style nit in the `SAFETY` comment.
Signed-off-by: default avatarManmohan Shukla <manmshuk@gmail.com>
Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
Reviewed-by: default avatarJianguo Bao <roidinev@gmail.com>
Reviewed-by: default avatarVincenzo Palazzo <vincenzopalazzodev@gmail.com>
Reviewed-by: default avatarFinn Behrens <me@kloenk.dev>
Reviewed-by: default avatarBenno Lossin <benno.lossin@proton.me>
Reviewed-by: default avatarAndreas Hindborg <a.hindborg@samsung.com>
Fixes: c7e20faa ("rust: error: Add Error::to_ptr()")
Link: https://lore.kernel.org/r/20230906204857.85619-1-manmshuk@gmail.comSigned-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent 17bfcd6a
......@@ -133,7 +133,7 @@ pub fn to_errno(self) -> core::ffi::c_int {
/// Returns the error encoded as a pointer.
#[allow(dead_code)]
pub(crate) fn to_ptr<T>(self) -> *mut T {
// SAFETY: self.0 is a valid error due to its invariant.
// SAFETY: `self.0` is a valid error due to its invariant.
unsafe { bindings::ERR_PTR(self.0.into()) as *mut _ }
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment