diff --git a/doc/musig-spec.mediawiki b/doc/musig-spec.mediawiki
index 51f7c5224..858d58073 100644
--- a/doc/musig-spec.mediawiki
+++ b/doc/musig-spec.mediawiki
@@ -96,7 +96,9 @@ The algorithm ''IsSecond(pk1..u, pk')'' is defined as:
The algorithm ''KeyAggCoeff(pk1..u, pk)'' is defined as:
* Let ''L = HashKeys(pk1..u)''.
-* Return 1 if ''IsSecond(pk1..u, pki)'', otherwise return ''int(hashKeyAgg coefficient(L || pk)) mod n''.
+* If ''IsSecond(pk1..u, pki)''
+** Return 1
+* Return ''int(hashKeyAgg coefficient(L || pk)) mod n''.
==== Nonce Generation ====