A Leg Up

What does the idiom “a leg up” mean?

Definition: an advantage, a boost

Example: I’m going to take a summer school class. I think it’ll give me a leg up when I take calculus at the university next year.