I'm given the assignment to prove that $\operatorname{diam}\bar A = \operatorname{diam}A$, where $\operatorname{diam}A=\sup\{\rho(a,b): a,b \in A\}.$
How can they be equal if $\bar A= \partial A \cup A$:
Say $x\in \partial A$, then does it not follow that $x > a, \; x> b$, thus $ x \notin A$ ?
Consider the intervals $(0,2)$ and $[0,2]$. One is open -- not containing either $0$ or $2$. The other is closed -- containing both $0$ and $2$.
The length of both these intervals is $2-0 = 2.$