Spotting before your supposed to get your period

Katharine
So I had some spotting between 4-5 days.  brown pinkish.  And it stoped for a day and a half and then I got my period the day I was actually supposed to.   What does that mean?