An intransitive verb is a verb that denotes an action which does not pass over to an object or which expresses a state or being
He ran a long distance.
According to me here run is a transitive verb because it has its object a long distance. But in my grammar book it is said to be intransitive. I am confused over this.