Skip to content

Commit f89f2e6

Browse files
authored
Merge pull request #2810 from valeriyvan/NSString
2 parents bcd90cd + 9830e46 commit f89f2e6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/Foundation/NSString.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,7 @@ open class NSString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSC
231231
}
232232

233233
public override convenience init() {
234-
let characters = Array<unichar>(repeating: 0, count: 1)
235-
self.init(characters: characters, length: 0)
234+
self.init("")
236235
}
237236

238237
internal init(_ string: String) {

0 commit comments

Comments
 (0)