]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
rust: make section names plural
authorPatrick Miller <paddymills@proton.me>
Wed, 2 Oct 2024 02:28:48 +0000 (02:28 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 26 May 2025 16:03:09 +0000 (18:03 +0200)
Clean Rust documentation section headers to use plural names.

Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1110
Signed-off-by: Patrick Miller <paddymills@proton.me>
Link: https://lore.kernel.org/r/20241002022749.390836-1-paddymills@proton.me
[ Removed the `init` one that doesn't apply anymore and
  reworded slightly. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/list/arc.rs
rust/kernel/sync/arc.rs
rust/macros/lib.rs

index a88a2dc65aa7cfc522335224ca69fd1c9dbd1e10..8401ddcd178acd3223d0bad0d8b1b6758fb4d3c0 100644 (file)
@@ -464,7 +464,7 @@ where
 
 /// A utility for tracking whether a [`ListArc`] exists using an atomic.
 ///
-/// # Invariant
+/// # Invariants
 ///
 /// If the boolean is `false`, then there is no [`ListArc`] for this value.
 #[repr(transparent)]
index 356eef3afdae4c5969a0dd5b786bde9d878a749a..c7af0aa48a0a049bfeeba3a81080355f4d381738 100644 (file)
@@ -492,7 +492,7 @@ impl<T: ?Sized> From<Pin<UniqueArc<T>>> for Arc<T> {
 /// There are no mutable references to the underlying [`Arc`], and it remains valid for the
 /// lifetime of the [`ArcBorrow`] instance.
 ///
-/// # Example
+/// # Examples
 ///
 /// ```
 /// use kernel::sync::{Arc, ArcBorrow};
index cb429eceff7147f941aec5f27ac948b68f561545..b0b86fb9bfab0ab1f1dce3c4773944246571b68f 100644 (file)
@@ -263,7 +263,7 @@ pub fn concat_idents(ts: TokenStream) -> TokenStream {
 /// literals (lifetimes and documentation strings are not supported). There is a difference in
 /// supported modifiers as well.
 ///
-/// # Example
+/// # Examples
 ///
 /// ```
 /// # const binder_driver_return_protocol_BR_OK: u32 = 0;