[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Fri, 03 Mar 2023 20:06:29 +0100
From: Patrick Blass via B4 Relay
<devnull+patrickblass.mailbox.org@...nel.org>
To: Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>,
Wedson Almeida Filho <wedsonaf@...il.com>,
Boqun Feng <boqun.feng@...il.com>, Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Morgan Bartlett <mjmouse9999@...il.com>,
Niklas Mohrin <dev@...lasmohrin.de>
Cc: Geoffrey Thomas <geofft@...reload.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Viktor Garske <viktor@...ar.de>,
Sven Van Asbroeck <thesven73@...il.com>,
rust-for-linux@...r.kernel.org, linux-kernel@...r.kernel.org,
Patrick Blass <patrickblass@...lbox.org>
Subject: [PATCH] rust: str: fix requierments->requirements typo for rust
str
From: Patrick Blass <patrickblass@...lbox.org>
Fix a trivial spelling error in the rust str file.
Fixes: 247b365dc8dc ("rust: add `kernel` crate")
Reported-by: Miguel Ojeda <ojeda@...nel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/978
Signed-off-by: Patrick Blass <patrickblass@...lbox.org>
---
rust/kernel/str.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/kernel/str.rs b/rust/kernel/str.rs
index b771310fa4a4..cd3d2a6cf1fc 100644
--- a/rust/kernel/str.rs
+++ b/rust/kernel/str.rs
@@ -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 _,
---
base-commit: c9c3395d5e3dcc6daee66c6908354d47bf98cb0c
change-id: 20230303-str-rs-typo-be1cc85db93f
Best regards,
--
Patrick Blass <patrickblass@...lbox.org>
Powered by blists - more mailing lists