Skip to content

Commit 7817b73

Browse files
committed
[stdlib] String, Substring: Use new _StringGuts helper
1 parent 9c005af commit 7817b73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/core/String.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,6 @@ extension String {
11471147
/// - Complexity: O(1)
11481148
@available(StdlibDeploymentTarget 6.4, *)
11491149
public func isTriviallyIdentical(to other: Self) -> Bool {
1150-
self._guts.rawBits == other._guts.rawBits
1150+
self._guts.isTriviallyIdentical(to: other._guts)
11511151
}
11521152
}

stdlib/public/core/Substring.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ extension Substring {
14571457
/// - Complexity: O(1)
14581458
@available(StdlibDeploymentTarget 6.4, *)
14591459
public func isTriviallyIdentical(to other: Self) -> Bool {
1460-
self._wholeGuts.rawBits == other._wholeGuts.rawBits &&
1460+
self._wholeGuts.isTriviallyIdentical(to: other._wholeGuts) &&
14611461
self._offsetRange == other._offsetRange
14621462
}
14631463
}

0 commit comments

Comments
 (0)