Skip to content

Commit 01d8f1e

Browse files
authored
added missing proc-macro invocation to migration guide (#2209)
1 parent 576818d commit 01d8f1e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

guide/src/migration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ use pyo3::types::PyString;
5151
#[pyclass]
5252
struct MyClass { }
5353
54+
#[pymethods]
5455
impl MyClass {
5556
fn __str__(&self) -> &'static [u8] {
5657
b"hello, world"

0 commit comments

Comments
 (0)