diff --git a/src/types/weakref/callableproxy.rs b/src/types/weakref/callableproxy.rs index f633f5fa420..743328e54c7 100644 --- a/src/types/weakref/callableproxy.rs +++ b/src/types/weakref/callableproxy.rs @@ -191,7 +191,7 @@ impl PyWeakCallableProxy { /// ); /// assert_eq!(py.eval_bound("counter", None, None)?.extract::()?, 0); /// - /// let weakref2 = PyWeakCallableProxy::new_bound_with(&foo, wrap_pyfunction!(callback, py)?)?; + /// let weakref2 = PyWeakCallableProxy::new_bound_with(&foo, wrap_pyfunction_bound!(callback, py)?)?; /// assert!(!weakref.is(&weakref2)); // Not the same weakref /// assert!(weakref.eq(&weakref2)?); // But Equal, since they point to the same object /// diff --git a/src/types/weakref/proxy.rs b/src/types/weakref/proxy.rs index 3401a715bdc..6b33ab75ed7 100644 --- a/src/types/weakref/proxy.rs +++ b/src/types/weakref/proxy.rs @@ -170,7 +170,7 @@ impl PyWeakProxy { /// ); /// assert_eq!(py.eval_bound("counter", None, None)?.extract::()?, 0); /// - /// let weakref2 = PyWeakProxy::new_bound_with(&foo, wrap_pyfunction!(callback, py)?)?; + /// let weakref2 = PyWeakProxy::new_bound_with(&foo, wrap_pyfunction_bound!(callback, py)?)?; /// assert!(!weakref.is(&weakref2)); // Not the same weakref /// assert!(weakref.eq(&weakref2)?); // But Equal, since they point to the same object /// diff --git a/src/types/weakref/reference.rs b/src/types/weakref/reference.rs index 470bc96719b..420ef4b2a5a 100644 --- a/src/types/weakref/reference.rs +++ b/src/types/weakref/reference.rs @@ -149,7 +149,7 @@ impl PyWeakRef { /// ); /// assert_eq!(py.eval_bound("counter", None, None)?.extract::()?, 0); /// - /// let weakref2 = PyWeakRef::new_bound_with(&foo, wrap_pyfunction!(callback, py)?)?; + /// let weakref2 = PyWeakRef::new_bound_with(&foo, wrap_pyfunction_bound!(callback, py)?)?; /// assert!(!weakref.is(&weakref2)); // Not the same weakref /// assert!(weakref.eq(&weakref2)?); // But Equal, since they point to the same object ///