Caret symbol for collapsed and expanded vertical left menu

What is the UX behind the caret symbol used when a left menu is collapsed? Some applications use the left caret and some use the right. What's the ideal approach?

enter image description here