rust/kernel/str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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
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
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
© 2016 - 2025 Red Hat, Inc.