Commit ae8b3a83 authored by Jihed Chaibi's avatar Jihed Chaibi Committed by Miguel Ojeda
Browse files

rust: str: fix typo in comment



Fix a typo ("then" to "than") in a comment.

Signed-off-by: default avatarJihed Chaibi <jihed.chaibi.dev@gmail.com>
Reviewed-by: default avatarBenno Lossin <lossin@kernel.org>
Fixes: fffed679 ("rust: str: add `Formatter` type")
Link: https://lore.kernel.org/r/20250517002604.603223-1-jihed.chaibi.dev@gmail.com


[ Reworded. - Miguel ]
Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent ea33f91f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,