Skip to content

Commit 88e8c2e

Browse files
Patrick Blassojeda
Patrick Blass
authored andcommitted
rust: str: fix requierments->requirements typo
Fix a trivial spelling error in the `rust/kernel/str.rs` file. Fixes: 247b365 ("rust: add `kernel` crate") Reported-by: Miguel Ojeda <[email protected]> Link: #978 Signed-off-by: Patrick Blass <[email protected]> Reviewed-by: Vincenzo Palazzo <[email protected]> [Reworded slightly] Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 7e364e5 commit 88e8c2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: rust/kernel/str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ impl RawFormatter {
408408
/// If `pos` is less than `end`, then the region between `pos` (inclusive) and `end`
409409
/// (exclusive) must be valid for writes for the lifetime of the returned [`RawFormatter`].
410410
pub(crate) unsafe fn from_ptrs(pos: *mut u8, end: *mut u8) -> Self {
411-
// INVARIANT: The safety requierments guarantee the type invariants.
411+
// INVARIANT: The safety requirements guarantee the type invariants.
412412
Self {
413413
beg: pos as _,
414414
pos: pos as _,

0 commit comments

Comments
 (0)