Commit d49c5636 authored by Benno Lossin's avatar Benno Lossin
Browse files

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: default avatarBenno Lossin <lossin@kernel.org>
parent 62a9c709
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.