Skip to content

Commit 67fc903

Browse files
committed
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 <[email protected]>
1 parent 9a5e454 commit 67fc903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)