Minecraft wiki entry for Dual_wielding, associated text: Though putting two weapons into your main and offhand is pretty useless as stated, the Mending effect is still used, meaning you can grind XP and repair tools.