Merge pull request #121 from thanatos/token-typo

Fix minor typos in example code
This commit is contained in:
Nikolay Kim 2018-02-23 01:48:41 -08:00 committed by GitHub
commit 2c0a866029
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
/// }
/// }