Skip to contentSkip to conversation

rust: error: Markdown style nit

PATCH Applied Manmohan Shukla 8 participants 8 messages Sep 6, 2023 – Oct 8, 2023 Rust

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rust: error: Markdown style nit

This patch fixes a trivial markdown style nit in the SAFETY comment.

---
 rust/kernel/error.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/kernel/error.rs +1 -1
index 05fcab6abfe6..6233021daa8a 100644
@@ -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 _ }
     }
 
Signature · 1 line
2.34.1
reviewer Reviewed-by on v1 1/1
#2 lore raw
In reply to Manmohan Shukla
Quoted 22 lines

This patch fixes a trivial markdown style nit in the SAFETY comment.

---
 rust/kernel/error.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/kernel/error.rs +1 -1
index 05fcab6abfe6..6233021daa8a 100644
@@ -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 _ }
     }
 
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#3 lore raw
In reply to Manmohan Shukla
Quoted 21 lines · Manmohan Shukla

This patch fixes a trivial markdown style nit in the SAFETY comment.

---
  rust/kernel/error.rs | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
rust/kernel/error.rs +1 -2
index 05fcab6abfe6..6233021daa8a 100644
@@ -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 _ }
      }
 
--
Quoted 1 line

2.34.1

Reviewed-by on v1 1/1
#6 lore raw
In reply to Manmohan Shukla
Quoted 22 lines · Manmohan Shukla

This patch fixes a trivial markdown style nit in the SAFETY comment.

---
 rust/kernel/error.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rust/kernel/error.rs +1 -1
index 05fcab6abfe6..6233021daa8a 100644
@@ -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 _ }
     }
 
Signature · 1 line
2.34.1