The Stokes theorem states: $$\int_\mathcal M d\omega =\int_{\partial \mathcal M} \omega $$
If we have that $\mathcal M$ is a one dimensional manifold with two extreme points, like a closed interval of $\mathbb R$, and $d\omega$ is a one-form, how could the integral in the second term be done? Does that make sense? Because $\partial\mathcal M$ is just two isolated points. We are integrating a function to a single point? The only thing that makes some sense would be the value of the function at those points, and only because it coincides in a specific problem with what I should get by integrating $d\omega$ to the curve, but I don't see that clear at all.
I know this is actually what gives:
$$\int_a^b df=\left. f\right|_a^b$$
but I can't prove it.