Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Jihed Chaibi and committed by
Miguel Ojeda
ae8b3a83 ea33f91f

+1 -1
+1 -1
rust/kernel/str.rs
··· 752 752 /// for the lifetime of the returned [`RawFormatter`]. 753 753 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { 754 754 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 756 756 // guarantees that the memory region is valid for writes. 757 757 Self { 758 758 pos,