I am currently learning about the iodoform reaction, i.e. when CH3COR compounds react with iodine and sodium hydroxide to form iodoform.
My course book and Chemguide both says that the reaction is as follows:
$$ \mathrm{CH_3COR + 3I_2 +4OH^- \rightarrow CHI_3 + RCOO^- +3I^- +3H_2O}$$
However, this picture from Wikipedia suggests that hydrogen iodide is formed instead of water:
Which one is correct?