No, this would not invalidate the ticket: a court will not throw out the citation for a minor, easily corrected error. What a court would do is conform the citation to the speed on the speed gun if this comes up at trial--i.e. they'd knock 2 mph off your citation, which may or may not make a difference (it depends what your speed was and whether that pulls it into a lower category of speeding).