From 3e8025ccf800376810128174f5c0bf6616fa1241 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 25 Feb 2022 14:53:29 +0100 Subject: [PATCH] Update src/types/any.rs Co-authored-by: Bruno Kolenbrander <59372212+mejrs@users.noreply.github.com> --- src/types/any.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]