This was no earth-shattering event, but financial markets responded as if a meteorite had struck them. The negative reaction is no mystery: China’s devaluation was a textbook example of how not to conduct exchange-rate policy.