소스 검색

doc: fix code

Nathalie Furmento 8 년 전
부모
커밋
bdd09a823c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      doc/doxygen/chapters/301_tasks.doxy

+ 2 - 2
doc/doxygen/chapters/301_tasks.doxy

@@ -544,14 +544,14 @@ An intermediate solution is to define a codelet with its
 starpu_codelet::where field set to \ref STARPU_NOWHERE, for instance:
 
 \code{.c}
-struct starpu_codelet {
+struct starpu_codelet cl = {
 	.where = STARPU_NOWHERE,
 	.nbuffers = 1,
 	.modes = { STARPU_R },
 }
 
 task = starpu_task_create();
-task->cl = starpu_codelet;
+task->cl = &cl;
 task->handles[0] = handle;
 starpu_task_submit(task);
 \endcode