diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c
index 8f04b19744da96a09aa1b16f8cb5bb8ecbbbd9c7..6086673a7470795d011613a88a39d86c0eb4a3a2 100644
--- a/src/backend/utils/error/elog.c
+++ b/src/backend/utils/error/elog.c
@@ -1082,7 +1082,7 @@ errhidestmt(bool hide_stmt)
 }
 
 /*
- * errhidestmt --- optionally suppress CONTEXT: field of log entry
+ * errhidecontext --- optionally suppress CONTEXT: field of log entry
  *
  * This should only be used for verbose debugging messages where the repeated
  * inclusion of CONTEXT: bloats the log volume too much.