Skip to content

Commit

Permalink
Mark infix methods as infix
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jan 26, 2024
1 parent 179bd68 commit d3f3d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/nettlesome.scala
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ object Nettlesome:
def byte3: Int = ip & 255

@targetName("subnet")
def /(size: Int): Ipv4Subnet = Ipv4Subnet(ip & (-1 << (32 - size)), size)
infix def / (size: Int): Ipv4Subnet = Ipv4Subnet(ip & (-1 << (32 - size)), size)

def int: Int = ip

Expand Down

0 comments on commit d3f3d0c

Please sign in to comment.