Recently I had a Discrete maths exam and came across the following induction. I improvised in the last step just for the points, but i cant seem to find the actual solution.

In case it is not clear the exercise is: $$1\cdot1!+2\cdot2!+\dots+(n-1)(n-1)!=n!-1\text{ where }n>0$$
If it's true for $n-1$ namely $1*1! + \dots +(n-2)(n-2)! = (n-1)! - 1$ than for $n$ we have $1*1! + \dots + (n-2)(n-2)! + (n-1)(n-1)! = (n-1)! - 1 + (n-1)(n-1)! = (n-1)! - 1 + n! - (n-1)! = n! - 1$
Q.E.D