We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b2f7bf commit bdbf9f6Copy full SHA for bdbf9f6
src/Language/C/Pretty.hs
@@ -144,7 +144,7 @@ instance Pretty CStat where
144
$$ text "while" <+> text "(" <> pretty expr <> text ");"
145
pretty (CFor for_init cond step stat _) =
146
ii $ text "for" <+> text "("
147
- <> pretty for_init
+ <> pretty for_init <> semi
148
<+> maybeP pretty cond <> semi
149
<+> maybeP pretty step <> text ")" $+$ prettyPrec (-1) stat
150
pretty (CGoto ident _) = ii $ text "goto" <+> identP ident <> semi
0 commit comments