Let $(X, \mathcal{A} ,\mu)$ measure space and $f:X \mapsto [0,+\infty]$ an integrable function. Define
$f_n(x) = \begin{cases} f(x) & \text{if} \ \ \ f(x) <n \\ n & \, \text{otherwise} \end{cases}$
Show that $f_n \rightarrow f$ in $L^1$.
My solution so far $\int |f_n-f|d\mu=\int \limits_{[f<n]}|f_n-f|d\mu+\int \limits_{[f\geq n]}|f_n-f|d\mu=0 \cdot\mu([f_n<n])+(f(x)-n) \cdot \mu([f_n \geq n])\rightarrow 0$
since $\mu([f_n \geq n]) \rightarrow 0$, because $f$ is integrable. I think I am missing something.