Give an example of a noncompact metric space on which every real valued continuous function is uniformly continuous.
My attempt: Consider $\mathbb Q$ with usual metric. As $\mathbb Q$ is not complete it is not compact. And the only continuous function from $\mathbb Q$ to $\mathbb R$ are constant functions so they all are uniformly continuous. Is this correct?