Skip to content

Commit 65a44b5

Browse files
committed
Update Foundation URL to use new name urlForResource -> url
1 parent 396c9f2 commit 65a44b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/SDK/Foundation/URL.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ extension URL : CustomPlaygroundQuickLookable {
10231023

10241024
extension URL : _FileReferenceLiteralConvertible {
10251025
public init(fileReferenceLiteralResourceName name: String) {
1026-
self = Bundle.main.urlForResource(name, withExtension: nil)!
1026+
self = Bundle.main.url(forResource: name, withExtension: nil)!
10271027
}
10281028
}
10291029

0 commit comments

Comments
 (0)