* [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* Re: [PATCH] docs: fix typo in rust/kernel/str.rs
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
1 sibling, 0 replies; 3+ messages in thread
From: Benno Lossin @ 2025-05-17 8:02 UTC (permalink / raw)
To: Jihed Chaibi, skhan, alex.gaynor, ojeda, boqun.feng
Cc: rust-for-linux, linux-kernel, linux-kernel-mentees
On Sat May 17, 2025 at 2:26 AM CEST, Jihed Chaibi wrote:
> 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(-)
Reviewed-by: Benno Lossin <lossin@kernel.org>
---
Cheers,
Benno
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] docs: fix typo in rust/kernel/str.rs
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
1 sibling, 0 replies; 3+ messages in thread
From: Miguel Ojeda @ 2025-05-20 20:59 UTC (permalink / raw)
To: Jihed Chaibi
Cc: skhan, alex.gaynor, ojeda, boqun.feng, rust-for-linux,
linux-kernel, linux-kernel-mentees
On Sat, May 17, 2025 at 2:26 AM Jihed Chaibi <jihed.chaibi.dev@gmail.com> wrote:
>
> Fixing a minor grammar error ("then" to "than") in rust/kernel/str.rs
>
> Signed-off-by: Jihed Chaibi <jihed.chaibi.dev@gmail.com>
Applied to `rust-next` -- thanks everyone!
[ Reworded. - Miguel ]
When sending a fix, please try to find which commit introduces the
mistake, and then add a Fixes: tag. That helps a lot when figuring out
if something needs to be backported etc. :)
Fixes: fffed679eeea ("rust: str: add `Formatter` type")
Cheers,
Miguel
^ permalink raw reply [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