Skip to content

Commit 7a386c8

Browse files
authored
Merge pull request #4554 from Nirma/string_constructor_simplification
[stdlib] Simplify StringUTF16's String constructor
2 parents 2ab53b5 + 7c94da9 commit 7a386c8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

stdlib/public/core/StringUTF16.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,7 @@ extension String {
282282
}
283283

284284
internal init(_ _core: _StringCore) {
285-
self._offset = 0
286-
self._length = _core.count
287-
self._core = _core
285+
self.init(_core, offset: 0, length: _core.count)
288286
}
289287

290288
internal init(_ _core: _StringCore, offset: Int, length: Int) {

0 commit comments

Comments
 (0)