Pfx.trim

You're seeing just the function trim, go back to Pfx module for more information.

Specs

trim(prefix()) :: prefix()

Trims all trailing 0's from given prefix.

Examples

iex> trim("255.255.255.0")
"255.255.255.0/24"

iex> trim("10.10.128.0/30")
"10.10.128.0/17"