How do you learn from the mistake you made?

You look at the mistake and think how you can avoid doing that mistake In other words, don't repeat the same mistake.