added missing proc-macro invocation to migration guide (#2209)
This commit is contained in:
parent
576818dc0c
commit
01d8f1e696
|
@ -51,6 +51,7 @@ use pyo3::types::PyString;
|
|||
#[pyclass]
|
||||
struct MyClass { }
|
||||
|
||||
#[pymethods]
|
||||
impl MyClass {
|
||||
fn __str__(&self) -> &'static [u8] {
|
||||
b"hello, world"
|
||||
|
|
Loading…
Reference in New Issue