diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c
index d3d1033beb..006b2da1c3 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 replication slots' shared memory.
  */
 void
 ReplicationSlotsShmemInit(void)
