diff --git a/src/space.c b/src/space.c
index f488cb3d258981d6db121127c30e040b5a9a300a..c7dd8a13004d6862d16e4e1f40c74f40f2f31be5 100644
--- a/src/space.c
+++ b/src/space.c
@@ -781,7 +781,7 @@ void space_map_clearsort(struct cell *c, void *data) {
 /**
  * @brief Map a function to all particles in a cell recursively.
  *
- * @param s The #space we are working in.
+ * @param c The #cell we are working in.
  * @param fun Function pointer to apply on the cells.
  * @param data Data passed to the function fun.
  */
@@ -825,7 +825,7 @@ void space_map_parts(struct space *s,
 /**
  * @brief Map a function to all particles in a cell recursively.
  *
- * @param s The #space we are working in.
+ * @param c The #cell we are working in.
  * @param full Map to all cells, including cells with sub-cells.
  * @param fun Function pointer to apply on the cells.
  * @param data Data passed to the function fun.