Skip to content

Commit 84928c6

Browse files
committed
Fixes example snippet in Array.swift
Uses URL instead of NSURL, otherwise example deson't compile
1 parent 5a1f38b commit 84928c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Array.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
/// let colors = ["periwinkle", "rose", "moss"]
265265
/// let moreColors: [String?] = ["ochre", "pine"]
266266
///
267-
/// let url = NSURL(fileURLWithPath: "names.plist")
267+
/// let url = URL(fileURLWithPath: "names.plist")
268268
/// (colors as NSArray).write(to: url, atomically: true)
269269
/// // true
270270
///

0 commit comments

Comments
 (0)