summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorNikolai Grlica <nikolai@nikolaigrlica.dev>2026-08-10 15:03:35 +0000
committerMiguel Ojeda <ojeda@kernel.org>2026-08-23 21:27:16 +0200
commita5c7d35e2fd3e24c411816c91f8f6cc78e652e0c (patch)
tree33341ff5fcd4031de02cf248d0d0eea2ced078de /rust/kernel
parentd24f5cdbeff8b6a063fca92d0a1f94122a799b59 (diff)
downloadlinux-a5c7d35e2fd3e24c411816c91f8f6cc78e652e0c.tar.gz
linux-a5c7d35e2fd3e24c411816c91f8f6cc78e652e0c.zip
rust: kernel: list: fix incorrect pop_back example comment
The example uses pop_back(), but the accompanying comment says pop_front(). Update the comment to match the example. Signed-off-by: Nikolai Grlica <nikolai@nikolaigrlica.dev> Cc: stable@vger.kernel.org Fixes: bf87a41b85d6 ("rust: list: Add an example for `ListLinksSelfPtr` usage") Link: https://patch.msgid.link/20260810150322.61809-1-nikolai@nikolaigrlica.dev Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/kernel')
-rw-r--r--rust/kernel/list.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/list.rs b/rust/kernel/list.rs
index 406e3a028c55..0f367264ee2e 100644
--- a/rust/kernel/list.rs
+++ b/rust/kernel/list.rs
@@ -249,7 +249,7 @@ pub use self::arc_field::{
/// assert_eq!(list.iter().count(), 3);
/// }
///
-/// // Pop the items from the list using `pop_front()` and verify the content.
+/// // Pop the items from the list using `pop_back()` and verify the content.
/// {
/// assert_eq!(list.pop_back().ok_or(EINVAL)?.value.foo(), ("a", 15));
/// assert_eq!(list.pop_back().ok_or(EINVAL)?.value.foo(), ("a", 32));