mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[stdlib] String API Review: hide "split" and "lines"
Swift SVN r18514
This commit is contained in:
@@ -12,7 +12,7 @@ func testFindFileAndURL(path: String) {
|
||||
path, usedEncoding: &usedEncoding, error: &err)
|
||||
|
||||
println("error: " + (err ? err.description : "<no error>"))
|
||||
println("content: " + (content ? content!.lines[0] : "<no content>"))
|
||||
println("content: " + (content ? content!._lines[0] : "<no content>"))
|
||||
|
||||
var url = NSURL.URLWithString("file://" + path)
|
||||
|
||||
@@ -21,7 +21,7 @@ func testFindFileAndURL(path: String) {
|
||||
url, usedEncoding: &usedEncoding, error: &err)
|
||||
|
||||
println("error: " + (err ? err.description : "<no error>"))
|
||||
println("content: " + (content ? content!.lines[0] : "<no content>"))
|
||||
println("content: " + (content ? content!._lines[0] : "<no content>"))
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user