Skip to content

Commit

Permalink
Fix minor typos in example code
Browse files Browse the repository at this point in the history
  • Loading branch information
thanatos committed Feb 23, 2018
1 parent 25514f6 commit 11e2163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typeob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
/// }
/// }
Expand Down

0 comments on commit 11e2163

Please sign in to comment.