Skip to content

Commit

Permalink
Change type of kwargs in the example to Option<PyDict>
Browse files Browse the repository at this point in the history
That's what the immediately preceding paragraph says the type is, and that
would make more sense.
  • Loading branch information
thanatos authored and Vlad-Shcherbina committed Mar 15, 2018
1 parent 24eee46 commit 80502bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/src/class.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ Example:
impl MyClass {

#[args(arg1=true, args="*", arg2=10, kwargs="**")]
fn method(&self, arg1: bool, args: &PyTuple, arg2: i32, kwargs: Option<&PyTuple>) -> PyResult<i32> {
fn method(&self, arg1: bool, args: &PyTuple, arg2: i32, kwargs: Option<&PyDict>) -> PyResult<i32> {
Ok(1)
}
}
Expand Down

0 comments on commit 80502bd

Please sign in to comment.