Make example code error.

This commit is contained in:
xiehan
2022-09-09 02:51:16 +08:00
committed by GitHub
parent 0e2190d9e0
commit b02fbf308e

View File

@@ -110,7 +110,7 @@ int main()
~~~cpp
int main()
{
WFGoTask *task = WFTaskFactory::create_timedgo_task(1, 0, "test", [task]() {
WFGoTask *task = WFTaskFactory::create_timedgo_task(1, 0, "test", [&task]() {
task->user_data = (void *)123;
});
task->set_callback([](WFGoTask *task) {