public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] docs: fix typo in rust/kernel/str.rs
@ 2025-05-17  0:26 Jihed Chaibi
  2025-05-17  8:02 ` Benno Lossin
  2025-05-20 20:59 ` Miguel Ojeda
  0 siblings, 2 replies; 3+ messages in thread
From: Jihed Chaibi @ 2025-05-17  0:26 UTC (permalink / raw)
  To: skhan, alex.gaynor, ojeda, boqun.feng
  Cc: rust-for-linux, linux-kernel, linux-kernel-mentees,
	jihed.chaibi.dev

Fixing a minor grammar error ("then" to "than") in rust/kernel/str.rs

Signed-off-by: Jihed Chaibi <jihed.chaibi.dev@gmail.com>

---
 rust/kernel/str.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rust/kernel/str.rs b/rust/kernel/str.rs
index fb61ce81e..42f355f74 100644
--- a/rust/kernel/str.rs
+++ b/rust/kernel/str.rs
@@ -752,7 +752,7 @@ pub(crate) unsafe fn from_ptrs(pos: *mut u8, end: *mut u8) -> Self {
     /// for the lifetime of the returned [`RawFormatter`].
     pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self {
         let pos = buf as usize;
-        // INVARIANT: We ensure that `end` is never less then `buf`, and the safety requirements
+        // INVARIANT: We ensure that `end` is never less than `buf`, and the safety requirements
         // guarantees that the memory region is valid for writes.
         Self {
             pos,
-- 
2.39.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-05-20 20:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-17  0:26 [PATCH] docs: fix typo in rust/kernel/str.rs Jihed Chaibi
2025-05-17  8:02 ` Benno Lossin
2025-05-20 20:59 ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox