Skip to content

Commit

Permalink
Merge pull request #984 from tamuhey/fix/comment
Browse files Browse the repository at this point in the history
fix api comment
  • Loading branch information
kngwyu authored Jun 20, 2020
2 parents 44b2247 + b84496a commit 3cd55ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/types/any.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 3cd55ee

Please sign in to comment.