From b84496a4d95b7b0b668b97f1e7d83548fa1f548c Mon Sep 17 00:00:00 2001 From: Yohei Tamura Date: Sat, 20 Jun 2020 12:07:29 +0900 Subject: [PATCH] fix api comment --- src/types/any.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/types/any.rs b/src/types/any.rs index 28401a81..bf06dcf0 100644 --- a/src/types/any.rs +++ b/src/types/any.rs @@ -230,16 +230,16 @@ impl PyAny { result } - /// Calls the object with only positional arguments. + /// Calls the object without arguments. /// - /// This is equivalent to the Python expression `self(*args)`. + /// This is equivalent to the Python expression `self()`. pub fn call0(&self) -> PyResult<&PyAny> { self.call((), None) } - /// Calls the object without arguments. + /// Calls the object with only positional arguments. /// - /// This is equivalent to the Python expression `self()`. + /// This is equivalent to the Python expression `self(*args)`. pub fn call1(&self, args: impl IntoPy>) -> PyResult<&PyAny> { self.call(args, None) }