Skip to content

Commit d49c563

Browse files
committed
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>
1 parent 62a9c70 commit d49c563

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/pin-init/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ macro_rules! try_init {
994994
/// }
995995
///
996996
/// impl<T> Foo<T> {
997-
/// fn project(self: Pin<&mut Self>) -> Pin<&mut T> {
997+
/// fn project_this(self: Pin<&mut Self>) -> Pin<&mut T> {
998998
/// assert_pinned!(Foo<T>, elem, T, inline);
999999
///
10001000
/// // SAFETY: The field is structurally pinned.

0 commit comments

Comments
 (0)