From 01d8f1e6965c4a7885ef60ee7d4f2fd589db9944 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 5 Mar 2022 10:46:36 -0500 Subject: [PATCH] added missing proc-macro invocation to migration guide (#2209) --- guide/src/migration.md | 1 + 1 file changed, 1 insertion(+) diff --git a/guide/src/migration.md b/guide/src/migration.md index 6cd6e2f177b..6996f9a9b9d 100644 --- a/guide/src/migration.md +++ b/guide/src/migration.md @@ -51,6 +51,7 @@ use pyo3::types::PyString; #[pyclass] struct MyClass { } +#[pymethods] impl MyClass { fn __str__(&self) -> &'static [u8] { b"hello, world"