diff --git a/src/scheduler.c b/src/scheduler.c
index a2f7ef611ee9696ffcaad3a96bbb304d2b148782..744a4a8d73b656981dbd0db3261f66f890c61506 100644
--- a/src/scheduler.c
+++ b/src/scheduler.c
@@ -112,6 +112,12 @@ void scheduler_addunlock(struct scheduler *s, struct task *ta,
   atomic_inc(&s->completed_unlock_writes);
 }
 
+/**
+ * @brief Write a dot file with the task dependencies.
+ *
+ * See examples/task_graph for an example of how to use it
+ * @param s The #scheduler we are working in.
+ */
 void scheduler_write_dependency(struct scheduler *s) {
 #ifdef WITH_MPI
   if (engine_rank != 0) return;