What is the meaning of [It’s never too late to mend.]

It’s never too late to change your wrong ways or habits.

Example: X: I still miss my best friend, but it’s been a year since our fight and we haven’t spoken to each other since. Y: Well, it’s never too late to mend; why don’t you call him up and apologize?