Totally disconnected not implies discrete

Statement
It is possible to have a totally disconnected space that is not a discrete space.

Examples

 * The rational numbers, equipped with the Euclidean topology from the real line, form a totally disconnected space that is not discrete.
 * The $$p$$-adic numbers, equipped with the usual topology, form a compact totally disconnected space that is not discrete.