Section 1022.
Whenever the defendant is acquitted on the merits, he is acquitted of the same offense, notwithstanding any defect in form or substance in the accusatory pleading on which the trial was had.
(Amended by Stats. 1951, Ch. 1674.)