diff options
| author | Benno Lossin <lossin@kernel.org> | 2025-09-05 19:12:06 +0200 |
|---|---|---|
| committer | Benno Lossin <lossin@kernel.org> | 2025-09-11 23:26:11 +0200 |
| commit | d49c56368c0cc98cdf02ae21dd275eba92f1c333 (patch) | |
| tree | dadef4492cd35dfc8639d7c9ad5df7f20c72f7ca | |
| parent | 62a9c709612c1cf0d5684022499f34c56c99b662 (diff) | |
rust: pin-init: rename `project` -> `project_this` in doctest
The next commit makes the `#[pin_data]` attribute generate a `project`
function that would collide with any existing ones.
Signed-off-by: Benno Lossin <lossin@kernel.org>
| -rw-r--r-- | rust/pin-init/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/pin-init/src/lib.rs b/rust/pin-init/src/lib.rs index 62e013a5cc20..2d0d9fd12524 100644 --- a/rust/pin-init/src/lib.rs +++ b/rust/pin-init/src/lib.rs @@ -994,7 +994,7 @@ macro_rules! try_init { /// } /// /// impl<T> Foo<T> { -/// fn project(self: Pin<&mut Self>) -> Pin<&mut T> { +/// fn project_this(self: Pin<&mut Self>) -> Pin<&mut T> { /// assert_pinned!(Foo<T>, elem, T, inline); /// /// // SAFETY: The field is structurally pinned. |