const fn strip_trailing_dot(s: &str) -> &str
Remove one trailing dot from s, if present.
s
validate() rejects empty labels, so a validated name has at most one.
validate()