ignore some python code in doc strings

This commit is contained in:
Nikolay Kim 2018-02-21 09:23:52 -08:00
parent 4eb22a3c20
commit 438f4bf091
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ pub trait ObjectProtocol {
/// On Python 2, this is equivalent to the Python expression 'cmp(self, other)'.
///
/// On Python 3, this is equivalent to:
/// ```
/// ```python,ignore
/// if self == other:
/// return Equal
/// elif a < b:

View File

@ -102,7 +102,7 @@ impl<'a, T: ?Sized> PyTypeInfo for &'a T where T: PyTypeInfo {
/// Calling of `__new__` method of base class is developer's responsibility.
///
/// Example of custom class implementation with `__new__` method:
/// ```rust
/// ```rust,ignore
/// #[py::class]
/// struct MyClass {
/// token: PyToken