Skip to content

Commit 629195c

Browse files
committed
String+IPv4: syntax++
1 parent 6293af0 commit 629195c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CornucopiaCore/Extensions/String/String+IPv4.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Foundation
66
public extension String {
77

88
/// A simplified check if this and another string are in the same IPv4 subnet.
9-
func CC_isInSameIPv4SubnetAs(other: String) -> Bool {
9+
func CC_isInSameIPv4SubnetAs(_ other: String) -> Bool {
1010

1111
if self.hasPrefix("169.254.") && other.hasPrefix("169.254.") {
1212
// Link-local uses /16

0 commit comments

Comments
 (0)