Skip to content

Commit 218a675

Browse files
jubalhBennoLossin
authored andcommitted
rust: kernel: fix typos in code comments
Fix spelling mistakes in code comments. Signed-off-by: Michael Vetter <jubalh@iodoru.org> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Benno Lossin <benno.lossin@proton.me> Link: https://lore.kernel.org/r/20240819205731.2163-1-jubalh@iodoru.org [ Reworded slightly. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> (cherry picked from commit 0ff8f3f0979559b0d7494d580f2597beab3f159b)
1 parent d4a082e commit 218a675

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
//! }
146146
//! }
147147
//! // Implement the internal `PinData` trait that marks the pin-data struct as a pin-data
148-
//! // struct. This is important to ensure that no user can implement a rouge `__pin_data`
148+
//! // struct. This is important to ensure that no user can implement a rogue `__pin_data`
149149
//! // function without using `unsafe`.
150150
//! unsafe impl<T> ::pinned_init::__internal::PinData for __ThePinData<T> {
151151
//! type Datee = Bar<T>;
@@ -156,7 +156,7 @@
156156
//! // case no such fields exist, hence this is almost empty. The two phantomdata fields exist
157157
//! // for two reasons:
158158
//! // - `__phantom`: every generic must be used, since we cannot really know which generics
159-
//! // are used, we declere all and then use everything here once.
159+
//! // are used, we declare all and then use everything here once.
160160
//! // - `__phantom_pin`: uses the `'__pin` lifetime and ensures that this struct is invariant
161161
//! // over it. The lifetime is needed to work around the limitation that trait bounds must
162162
//! // not be trivial, e.g. the user has a `#[pin] PhantomPinned` field -- this is

0 commit comments

Comments
 (0)