Text this: Effect of dephasing on single-qubit rotation gates