diff --git a/src/types/any.rs b/src/types/any.rs index 8998b23b4bc..c459c744a71 100644 --- a/src/types/any.rs +++ b/src/types/any.rs @@ -87,7 +87,8 @@ impl PyAny { ::try_from(self) } - /// Returns whether the object is the same as the other. + /// Returns whether `self` and `other` point to the same object. To compare the equality of two objects + /// (the `==` operator), use [`eq`](PyAny::eq). /// /// This is equivalent to the Python expression `self is other`. #[inline]