I am trying to figure out what is wrong with my proof for the below false statement:
Let $(f_n)$ be a sequence of continuous functions that converge pointwise to some Riemann-integrable function $f$. Then, for any $x\in[0,1]$,
$$\lim_{n\to\infty}\int_0^1 f_n(x) dx=\int_0^1 f(x) dx$$
My attempt at proof:
Let $x\in[0,1]$ and $\epsilon>0$. Since $f_n\to f$ pointwise, there is some $N\in\mathbb N$ s.t. for any $n>N$, $|f_n(x)-f(x)|<\epsilon$. Then,
\begin{align} \left|\int_0^1 f_n(x)dx - \int_0^1 f(x)dx\right| &= \left|\int_0^1 [f_n(x) - f(x)]dx\right| \\ &\le \int_0^1 |f_n(x) - f(x)|dx \\ &\le \epsilon \cdot (1-0)=\epsilon \end{align}
I think all my steps are correct. Did I overlook something here?