diff --git a/documentation/client.rst b/documentation/client.rst index 017cd85..2ef5aa3 100644 --- a/documentation/client.rst +++ b/documentation/client.rst @@ -201,7 +201,7 @@ For example, the following creates a reference loop between the Operation instan Context ctxt(...); myptr->op = ctxt.get("pv:name") - .result([ctxt](Result&& result) { + .result([myptr](Result&& result) { // <-- Danger! }) .exec();