added missing proc-macro invocation to migration guide (#2209)

This commit is contained in:
Alex Gaynor 2022-03-05 10:46:36 -05:00 committed by GitHub
parent 576818dc0c
commit 01d8f1e696
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ use pyo3::types::PyString;
#[pyclass]
struct MyClass { }
#[pymethods]
impl MyClass {
fn __str__(&self) -> &'static [u8] {
b"hello, world"