I know that type I error definition is rejecting a null that is actually true.

In this problem the following definition of Type I error was given: “Type I error: incorrectly rejecting the null hypothesis when it should not be rejected.”

I’m confused on how these mean the same thing.