Skip to content

Commit

Permalink
rust: str: fix requierments->requirements typo
Browse files Browse the repository at this point in the history
[ Upstream commit 88e8c2e ]

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

Fixes: 247b365 ("rust: add `kernel` crate")
Reported-by: Miguel Ojeda <ojeda@kernel.org>
Link: Rust-for-Linux/linux#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>
  • Loading branch information
pblass authored and gregkh committed Apr 26, 2023
1 parent 1c4dbb0 commit 8acb00f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/kernel/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 requierments guarantee the type invariants.
// INVARIANT: The safety requirements guarantee the type invariants.
Self {
beg: pos as _,
pos: pos as _,
Expand Down

0 comments on commit 8acb00f

Please sign in to comment.