Commit 88e8c2ec authored by Patrick Blass's avatar Patrick Blass Committed by Miguel Ojeda

rust: str: fix requierments->requirements typo

Fix a trivial spelling error in the `rust/kernel/str.rs` file.

Fixes: 247b365d ("rust: add `kernel` crate")
Reported-by: default avatarMiguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/978Signed-off-by: default avatarPatrick Blass <patrickblass@mailbox.org>
Reviewed-by: default avatarVincenzo Palazzo <vincenzopalazzodev@gmail.com>
[Reworded slightly]
Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent 7e364e56
......@@ -408,7 +408,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 requierments guarantee the type invariants.
// INVARIANT: The safety requirements guarantee the type invariants.
Self {
beg: pos as _,
pos: pos as _,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment