We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17bfcd6 commit 2a7e0a5Copy full SHA for 2a7e0a5
rust/kernel/error.rs
@@ -133,7 +133,7 @@ impl Error {
133
/// Returns the error encoded as a pointer.
134
#[allow(dead_code)]
135
pub(crate) fn to_ptr<T>(self) -> *mut T {
136
- // SAFETY: self.0 is a valid error due to its invariant.
+ // SAFETY: `self.0` is a valid error due to its invariant.
137
unsafe { bindings::ERR_PTR(self.0.into()) as *mut _ }
138
}
139
0 commit comments