From 80502bd307ff0fbffea0881551a73b33d5330db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roy=20Wellington=20=E2=85=A3?= Date: Thu, 22 Feb 2018 22:35:28 -0800 Subject: [PATCH] Change type of kwargs in the example to Option That's what the immediately preceding paragraph says the type is, and that would make more sense. --- guide/src/class.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/src/class.md b/guide/src/class.md index 43a876059c8..2b915161428 100644 --- a/guide/src/class.md +++ b/guide/src/class.md @@ -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 { + fn method(&self, arg1: bool, args: &PyTuple, arg2: i32, kwargs: Option<&PyDict>) -> PyResult { Ok(1) } }