diff --git a/src/common/compat.c b/src/common/compat.c
index 334ea1b8b404d6920beedee200564cfabf4a6318..91fa182c9addeca48927b80dd6a6f6d531dbcfb7 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -143,7 +143,7 @@ tor_open_cloexec(const char *path, int flags, unsigned mode)
   return fd;
 }
 
-/** As fpoen(path,mode), but ensures that the O_CLOEXEC bit is set on the
+/** As fopen(path,mode), but ensures that the O_CLOEXEC bit is set on the
  * underlying file handle. */
 FILE *
 tor_fopen_cloexec(const char *path, const char *mode)