projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c4dbb0
)
rust: str: fix requierments->requirements typo
author
Patrick Blass
<patrickblass@mailbox.org>
Fri, 3 Mar 2023 19:06:29 +0000
(20:06 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 26 Apr 2023 12:28:32 +0000
(14:28 +0200)
[ Upstream commit
88e8c2ec4ab84f9f05ed5af9693a3972baf386c4
]
Fix a trivial spelling error in the `rust/kernel/str.rs` file.
Fixes:
247b365dc8dc
("rust: add `kernel` crate")
Reported-by: Miguel Ojeda <ojeda@kernel.org>
Link:
https://github.com/Rust-for-Linux/linux/issues/978
Signed-off-by: Patrick Blass <patrickblass@mailbox.org>
Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
[Reworded slightly]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
rust/kernel/str.rs
patch
|
blob
|
history
diff --git
a/rust/kernel/str.rs
b/rust/kernel/str.rs
index
e45ff22
..
2c4b4ba
100644
(file)
--- a/
rust/kernel/str.rs
+++ b/
rust/kernel/str.rs
@@
-29,7
+29,7
@@
impl RawFormatter {
/// If `pos` is less than `end`, then the region between `pos` (inclusive) and `end`
/// (exclusive) must be valid for writes for the lifetime of the returned [`RawFormatter`].
pub(crate) unsafe fn from_ptrs(pos: *mut u8, end: *mut u8) -> Self {
- // INVARIANT: The safety requi
er
ments guarantee the type invariants.
+ // INVARIANT: The safety requi
re
ments guarantee the type invariants.
Self {
beg: pos as _,
pos: pos as _,