Skip to content

Commit dd3100b

Browse files
author
David Dunn
committed
Fix parameter name
1 parent 5dd4e25 commit dd3100b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Foundation/NSDictionary.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ open class NSDictionary : NSObject, NSCopying, NSMutableCopying, NSSecureCoding,
3939

4040
return NSGeneratorEnumerator(_storage.keys.map { _SwiftValue.fetch(nonOptional: $0) }.makeIterator())
4141
}
42+
4243
@available(*, deprecated)
4344
public convenience init?(contentsOfFile path: String) {
44-
self.init(contentsOfURL: URL(fileURLWithPath: path))
45+
self.init(contentsOf: URL(fileURLWithPath: path))
4546
}
4647

4748
@available(*, deprecated)
48-
public convenience init?(contentsOfURL url: URL) {
49+
public convenience init?(contentsOf url: URL) {
4950
do {
5051
guard let plistDoc = try? Data(contentsOf: url) else { return nil }
5152
let plistDict = try PropertyListSerialization.propertyList(from: plistDoc, options: [], format: nil) as? Dictionary<AnyHashable,Any>

0 commit comments

Comments
 (0)