Skip to content

Commit

Permalink
quash deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tayloraswift committed Oct 23, 2024
1 parent 1671401 commit eae3e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ArgumentParsing/CommandLine.Arguments.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ extension CommandLine
{
guard
let string:UnsafeMutablePointer<CChar> = $0,
let string:String = .init(validatingUTF8: string)
let string:String = .init(validatingCString: string)
else
{
return nil
Expand Down

0 comments on commit eae3e57

Please sign in to comment.