Skip to main content

strip_trailing_dot

Function strip_trailing_dot 

Source
const fn strip_trailing_dot(s: &str) -> &str
Expand description

Remove one trailing dot from s, if present.

validate() rejects empty labels, so a validated name has at most one.