From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC2937C for ; Mon, 24 Apr 2023 13:28:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 647B9C43322; Mon, 24 Apr 2023 13:28:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1682342932; bh=JzBJeiC/bdZyGVqFff4OnpRR0fK549vYnjIcoF64Hy0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kf5z9iIBkEA9fUnKF2WchQC3nU6HVrg20DFCTNvjdBe1JIT0IyCNaTI1N7XRy8i1h OR7UBlVz4XYhfINOU0AOPnPvKpL8V9dkPhm1GUsvPLrBZv4p5A3YGVEm1M6KoM6VYo t/rsZ2EQYhPjtnxlK79rBSeSI1UAS64zeL/VomlY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Miguel Ojeda , Patrick Blass , Vincenzo Palazzo , Sasha Levin Subject: [PATCH 6.2 014/110] rust: str: fix requierments->requirements typo Date: Mon, 24 Apr 2023 15:16:36 +0200 Message-Id: <20230424131136.645492269@linuxfoundation.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230424131136.142490414@linuxfoundation.org> References: <20230424131136.142490414@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Patrick Blass [ 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 Link: https://github.com/Rust-for-Linux/linux/issues/978 Signed-off-by: Patrick Blass Reviewed-by: Vincenzo Palazzo [Reworded slightly] Signed-off-by: Miguel Ojeda Signed-off-by: Sasha Levin --- 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 b771310fa4a49..cd3d2a6cf1fc1 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 _, -- 2.39.2