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:
@@ -119,7 +119,7 @@ testStartsWith()
|
||||
func testEnumerate() {
|
||||
println("testing enumerate")
|
||||
// CHECK: testing enumerate
|
||||
for (i, s) in enumerate( "You will never retrieve the necronomicon!".split(" ") ) {
|
||||
for (i, s) in enumerate( "You will never retrieve the necronomicon!"._split(" ") ) {
|
||||
println("\(i): \(s)")
|
||||
}
|
||||
// CHECK-NEXT: 0: You
|
||||
|
||||
Reference in New Issue
Block a user