Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonip committed Jul 17, 2024
1 parent e7a1a0b commit 5e61dfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/modelpb/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func Addr2IP(addr netip.Addr) *IP {
return ip
}

// IP2Addr converts a valid IP to netip.Addr.
// IP2Addr converts a nil IP to a zero netip.Addr and a valid IP to a valid netip.Addr.
func IP2Addr(i *IP) netip.Addr {
if i == nil {
return netip.Addr{}
Expand Down

0 comments on commit 5e61dfb

Please sign in to comment.