Effects of stellar rotation on spectral classification