rust: pin-init: fix typos
authorBenno Lossin <benno.lossin@proton.me>
Sat, 26 Apr 2025 08:39:22 +0000 (08:39 +0000)
committerBenno Lossin <benno.lossin@proton.me>
Thu, 1 May 2025 16:15:37 +0000 (18:15 +0200)
Correct two typos in the `Wrapper::pin_init` documentation.

Link: https://github.com/Rust-for-Linux/pin-init/pull/48/commits/fd0bf5e244b685188dc642fc4a0bd3f042468fdb
Reviewed-by: Christian Schrefl <chrisi.schrefl@gmail.com>
Signed-off-by: Benno Lossin <benno.lossin@proton.me>
rust/pin-init/src/lib.rs

index 05a0cd6ad8f4b0c0d293af7401cb6c3270089e13..b5a295effd9c50a5fc2309dcd37e8090c2094d22 100644 (file)
@@ -1580,7 +1580,7 @@ impl_tuple_zeroable!(A, B, C, D, E, F, G, H, I, J);
 /// });
 /// ```
 pub trait Wrapper<T> {
-    /// Create an pin-initializer for a [`Self`] containing `T` form the `value_init` initializer.
+    /// Creates an pin-initializer for a [`Self`] containing `T` from the `value_init` initializer.
     fn pin_init<E>(value_init: impl PinInit<T, E>) -> impl PinInit<Self, E>;
 }