operating systems – How segmentation is solution to external fragmentation

As per Galvin book, Segmentation is the solution to external fragmentation. But in segmentation blocks are of different sizes. so if one segment is removed that creates a hole. if we put the small segment many times then this creates external fragmentation. then how segmentation be a solution to external fragmentaton?