Skip to content

Commit ae8b3a8

Browse files
Jihed Chaibiojeda
Jihed Chaibi
authored andcommitted
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: fffed67 ("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>
1 parent ea33f91 commit ae8b3a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ impl RawFormatter {
752752
/// for the lifetime of the returned [`RawFormatter`].
753753
pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self {
754754
let pos = buf as usize;
755-
// INVARIANT: We ensure that `end` is never less then `buf`, and the safety requirements
755+
// INVARIANT: We ensure that `end` is never less than `buf`, and the safety requirements
756756
// guarantees that the memory region is valid for writes.
757757
Self {
758758
pos,

0 commit comments

Comments
 (0)