Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnhoekstra committed Oct 18, 2023
1 parent fe556b2 commit c0dd8ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shared/src/main/scala/com/comcast/ip4s/Cidr.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ sealed class Cidr[+A <: IpAddress] protected (val address: A, val prefixBits: In
* is (and prints as) a spec-valid cidr range, with no bits outside the routing mask set.
*
* @return a normalized cidr range
*
* @example {{{
* scala> Cidr(ipv4"10.11.12.13", 8).normalized
* res0: Cidr.Strict[Ipv4Address] = 10.0.0.0/8
* }}}
*/
def normalized: Strict[A] = Cidr.Strict(this)

Expand Down

0 comments on commit c0dd8ed

Please sign in to comment.