Skip to content

Commit a4484ff

Browse files
committed
Fix use of String.componentsSeparated(by:) in benchmark.
1 parent 73d5077 commit a4484ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/utils/ArgParse.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public func parseArgs(_ validOptions: [String]? = nil)
5555
continue
5656
}
5757
// Attempt to split it into two components separated by an equals sign.
58-
let components = arg.componentsSeparated(by: "=")
58+
let components = arg.components(separatedBy: "=")
5959
let optionName = components[0]
6060
if validOptions != nil && !validOptions!.contains(optionName) {
6161
print("Invalid option: \(arg)")

0 commit comments

Comments
 (0)