What does Minecraft mending do?

What does Minecraft mending do? Mending is an enchantment that restores durability of an item using experience.

Mending is an enchantment that restores durability of an item using experience.
See also  What is a Skindex?