The uniform continuity theorem says if f: A->N is continuous and Kin A is compact, then f is uniformly continuous on K.

But if I take 1/n on [0,1] it is not uniformly continuous because as we approach 0 from the left the y values get further and further apart. Is tehre something I'm missing in this theorem?