This lick demonstrates a cool concept. If the song you are playing is in the key of G you can just play through the G major pentatonic scale and it sounds great! As you can see in the example, even if the chord changes from G to C, the pentatonic scale still works very well.