diff --git a/src/common/di_ops.c b/src/common/di_ops.c
index c1e292fe2f..b22a58d1b1 100644
--- a/src/common/di_ops.c
+++ b/src/common/di_ops.c
@@ -3,18 +3,18 @@
/**
* \file di_ops.c
- * \brief Functions for data-independent operations
+ * \brief Functions for data-independent operations.
**/
#include "orconfig.h"
#include "di_ops.h"
/**
- * Timing-safe version of memcmp. As memcmp, compare the sz bytes
- * at a with the sz bytes at , and returns less than 0 if the
- * bytes at a lexically precede those at b, 0 if the byte ranges
- * are equal, and greater than zero if the bytes at a lexically follow
- * those at .
+ * Timing-safe version of memcmp. As memcmp, compare the sz bytes at
+ * a with the sz bytes at b, and return less than 0 if
+ * the bytes at a lexically precede those at b, 0 if the byte
+ * ranges are equal, and greater than zero if the bytes at a lexically
+ * follow those at b.
*
* This implementation differs from memcmp in that its timing behavior is not
* data-dependent: it should return in the same amount of time regardless of
@@ -85,7 +85,7 @@ tor_memcmp(const void *a, const void *b, size_t len)
/**
* Timing-safe memory comparison. Return true if the sz bytes at
- * a are the same as the sz bytes at , and 0 otherwise.
+ * a are the same as the sz bytes at b, and 0 otherwise.
*
* This implementation differs from !memcmp(a,b,sz) in that its timing
* behavior is not data-dependent: it should return in the same amount of time