diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c
index d3d1033beb..c8bb6e4f37 100644
--- a/src/backend/replication/slot.c
+++ b/src/backend/replication/slot.c
@@ -126,7 +126,7 @@ ReplicationSlotsShmemSize(void)
 }
 
 /*
- * Allocate and initialize walsender-related shared memory.
+ * Allocate and initialize shared memory for replication slots.
  */
 void
 ReplicationSlotsShmemInit(void)
