An eraser is used to correct mistakes made while writing with a pencil.