diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 2e347b0692..140fe218c3 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -4896,13 +4896,21 @@ router_differences_are_cosmetic(const routerinfo_t *r1, const routerinfo_t *r2)
return 1;
}
-/** Check whether ri (a.k.a. sd) is a router compatible with the
- * extrainfo document
- * ei. If no router is compatible with ei, ei should be
+/** Check whether sd describes a router descriptor compatible with the
+ * extrainfo document ei.
+ *
+ * ri (which must also be provided) is the full routerinfo corresponding
+ * to the same router -- but note that it might not refer to the same specific
+ * descriptor as sd.
+ *
+ * If no router is compatible with ei, ei should be
* dropped. Return 0 for "compatible", return 1 for "reject, and inform
* whoever uploaded ei, and return -1 for "reject silently.". If
* msg is present, set *msg to a description of the
* incompatibility (if any).
+ *
+ * Set the extrainfo_is_bogus field in sd if the digests matched
+ * but the extrainfo was nonetheless incompatible.
**/
int
routerinfo_incompatible_with_extrainfo(const routerinfo_t *ri,