The idea here is that in our example in Lecture 26 - Uniform Continuity#Back to Uniform Continuity the function would be still continuous if instead (same definition of , just include the endpoints on the interval). In contrast, couldn't get that same extension.
Proof
Let be continuous, with being compact.
To show is uniformly continuous, follow the definition. Let . Since is continuous, then where then picking has .
The problem here is that may change with each , so first notice that if I consider the following collection (we denote the we choose for each as ):