Merge pull request #984 from tamuhey/fix/comment

fix api comment
This commit is contained in:
Yuji Kanagawa 2020-06-20 12:36:30 +09:00 committed by GitHub
commit 3cd55ee50f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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<Py<PyTuple>>) -> PyResult<&PyAny> {
self.call(args, None)
}