How to create a program that controls the speed of a servo using a potentiometer using arduino?

Sorry, The knob example will control position not speed. I will look into controlling speed.