docs: fix typo in rust/kernel/str.rs
PATCH 1/1 docs: fix typo in rust/kernel/str.rs
Fixing a minor grammar error ("then" to "than") in rust/kernel/str.rs
Signed-off-by Jihed Chaibi <[email protected]>
--- rust/kernel/str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
rust/kernel/str.rs +1 -1
@@ -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 = bufas 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,
Signature · 1 line
2.39.5
Quoted 7 lines · Jihed Chaibi
Fixing a minor grammar error ("then" to "than") in
rust/kernel/str.rsSigned-off-by Jihed Chaibi <[email protected]>--- rust/kernel/str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Benno Lossin <[email protected]>
---
Cheers,
Benno
Miguel Ojeda
AppliedQuoted 4 lines · Jihed Chaibi
Fixing a minor grammar error ("then" to "than") in
rust/kernel/str.rsSigned-off-by Jihed Chaibi <[email protected]>
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