The Victorian writer had the wit of one, and the friendship of the other.