projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea33f91
)
rust: str: fix typo in comment
author
Jihed Chaibi
<jihed.chaibi.dev@gmail.com>
Sat, 17 May 2025 00:26:04 +0000
(
02:26
+0200)
committer
Miguel Ojeda
<ojeda@kernel.org>
Tue, 20 May 2025 20:57:27 +0000
(22:57 +0200)
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>
rust/kernel/str.rs
patch
|
blob
|
blame
|
history
diff --git
a/rust/kernel/str.rs
b/rust/kernel/str.rs
index 8768ab790580e97d43bc712c99fa0abeca4eb02e..98d5c74ec4f75444bfc4c330968b2803b831c31f 100644
(file)
--- 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 th
e
n `buf`, and the safety requirements
+ // INVARIANT: We ensure that `end` is never less th
a
n `buf`, and the safety requirements
// guarantees that the memory region is valid for writes.
Self {
pos,