From 4fd01c3cd656d9250426361e35adbdd16ddb2817 Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Mon, 7 Feb 2022 07:46:12 +0000 Subject: [PATCH] fix: guide example for pyclass expansion --- guide/src/class.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/src/class.md b/guide/src/class.md index 047e1703..fb76ec02 100644 --- a/guide/src/class.md +++ b/guide/src/class.md @@ -861,7 +861,7 @@ impl pyo3::impl_::pyclass::PyClassImpl for MyClass { fn for_all_items(visitor: &mut dyn FnMut(&pyo3::impl_::pyclass::PyClassItems)) { use pyo3::impl_::pyclass::*; let collector = PyClassImplCollector::::new(); - static INTRINSIC_ITEMS: &PyClassItems = PyClassItems { slots: &[], methods: &[] }; + static INTRINSIC_ITEMS: PyClassItems = PyClassItems { slots: &[], methods: &[] }; visitor(&INTRINSIC_ITEMS); visitor(collector.py_methods()); }