X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/c06ba2665a64bff825193af71416ccb4811cf204..34042b3558b28b85fa7155f7c7cd171239cbbaa3:/doc/sod.sty

diff --git a/doc/sod.sty b/doc/sod.sty
index 7f777ea..9ff6181 100644
--- a/doc/sod.sty
+++ b/doc/sod.sty
@@ -211,13 +211,13 @@
 
 \def\q@{\q@}
 
-%% \parse@dhd{NEXT}[NAME]{CAT}{SYNOPSIS}
+%% \parse@dhd{NEXT}{CAT}[NAME]{SYNOPSIS}
 %% call NEXT{CAT}{NAME}{SYNOPSIS}
 %%            #1   #2      #3
-\def\parse@dhd#1{%  {NEXT}
-  \@ifnextchar[{\parse@dhd@cc{#1}}{\parse@dhd@cd{#1}}}
-\def\parse@dhd@cc#1[#2]#3#4{%  {NEXT}[NAME]{CAT}{SYNOPSIS}
-  #1{#3}{#2}{#4}}
+\def\parse@dhd#1#2{%  {NEXT}{CAT}
+  \@ifnextchar[{\parse@dhd@cc{#1}{#2}}{\parse@dhd@cd{#1}{#2}}}
+\def\parse@dhd@cc#1#2[#3]#4{%  {NEXT}{CAT}[NAME]{SYNOPSIS}
+  #1{#2}{#3}{#4}}
 \def\parse@dhd@cd#1#2#3{%  {NEXT}{CAT}{SYNOPSIS}
   \parse@dhd@ce{#1}{#2}{#3}#3 \q@}
 \def\parse@dhd@ce#1#2#3#4 #5\q@{%
