diff --git a/src/instance.rs b/src/instance.rs index ad5d2083d63..fd937e5d1bc 100644 --- a/src/instance.rs +++ b/src/instance.rs @@ -519,7 +519,7 @@ impl Py { unsafe { ffi::Py_None() == self.as_ptr() } } - /// Returns whether the object is an Ellipsis, e.g. `...`. + /// Returns whether the object is Ellipsis, e.g. `...`. /// /// This is equivalent to the Python expression `self is ...`. pub fn is_ellipsis(&self) -> bool { diff --git a/src/types/any.rs b/src/types/any.rs index 5ea2e052d0a..6b3cd7a0be0 100644 --- a/src/types/any.rs +++ b/src/types/any.rs @@ -669,7 +669,7 @@ impl PyAny { unsafe { ffi::Py_None() == self.as_ptr() } } - /// Returns whether the object is an Ellipsis, e.g. `...`. + /// Returns whether the object is Ellipsis, e.g. `...`. /// /// This is equivalent to the Python expression `self is ...`. pub fn is_ellipsis(&self) -> bool {