diff --git a/doc/zh/task.md b/doc/zh/task.md index 7bd199e0e..34f9b86df 100644 --- a/doc/zh/task.md +++ b/doc/zh/task.md @@ -64,7 +64,7 @@ class MethodTask $container = ApplicationContext::getContainer(); $exec = $container->get(TaskExecutor::class); -$result = $exec->execute(new Task([MethodTask::class, 'handle'], Coroutine::id())); +$result = $exec->execute(new Task([MethodTask::class, 'handle'], [Coroutine::id()])); ```