Merge pull request #121 from thanatos/token-typo
Fix minor typos in example code
This commit is contained in:
commit
2c0a866029
|
@ -112,7 +112,7 @@ impl<'a, T: ?Sized> PyTypeInfo for &'a T where T: PyTypeInfo {
|
|||
/// impl MyClass {
|
||||
/// #[new]
|
||||
/// fn __new__(obj: &PyRawObject) -> PyResult<()> {
|
||||
/// obj.init(|token| MyClass{token| token})
|
||||
/// obj.init(|token| MyClass{token: token});
|
||||
/// MyClass::BaseType::__new__(obj)
|
||||
/// }
|
||||
/// }
|
||||
|
|
Loading…
Reference in New Issue