diff options
author | Jihed Chaibi <jihed.chaibi.dev@gmail.com> | 2025-05-17 03:26:04 +0300 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2025-05-20 23:57:27 +0300 |
commit | ae8b3a83fb9de394f609035041cd7a668fda2ab3 (patch) | |
tree | e55159740088140bc87833d5227823ba63253ac3 /rust/kernel | |
parent | ea33f91f754cb982116a8447a30b549720af3e82 (diff) | |
download | linux-ae8b3a83fb9de394f609035041cd7a668fda2ab3.tar.xz |
rust: str: fix typo in comment
Fix a typo ("then" to "than") in a comment.
Signed-off-by: Jihed Chaibi <jihed.chaibi.dev@gmail.com>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Fixes: fffed679eeea ("rust: str: add `Formatter` type")
Link: https://lore.kernel.org/r/20250517002604.603223-1-jihed.chaibi.dev@gmail.com
[ Reworded. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/kernel')
-rw-r--r-- | rust/kernel/str.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/str.rs b/rust/kernel/str.rs index 8768ab790580..98d5c74ec4f7 100644 --- a/rust/kernel/str.rs +++ b/rust/kernel/str.rs @@ -752,7 +752,7 @@ impl RawFormatter { /// 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, |