Skip to content

Commit fd66cc6

Browse files
lorenteyamartini51
authored andcommitted
Apply suggestions from code review
Co-authored-by: Alex Martini <amartini@apple.com>
1 parent 048091d commit fd66cc6

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

stdlib/public/core/Array.swift

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2181,19 +2181,20 @@ extension Array {
21812181
/// - `a == b` does not imply `a.isTriviallyIdentical(b)`
21822182
///
21832183
/// Values produced by copying the same value, with no intervening mutations,
2184-
/// will compare identical:
2184+
/// compare as identical:
21852185
///
21862186
/// ```swift
21872187
/// let d = c
21882188
/// print(c.isTriviallyIdentical(to: d))
2189-
/// // Prints true
2189+
/// // Prints true.
21902190
/// ```
21912191
///
2192-
/// Comparing arrays this way includes comparing (normally) hidden
2193-
/// implementation details such as the memory location of any underlying
2194-
/// array storage object. Therefore, identical arrays are guaranteed to
2195-
/// compare equal with `==`, but not all equal arrays are considered
2196-
/// identical.
2192+
/// Comparing arrays this way
2193+
/// includes comparing implementation details that are normally hidden,
2194+
/// such as the memory location of any underlying array storage,
2195+
/// These details aren't considered when comparing for equality with the `==` operator.
2196+
/// Therefore, identical arrays are guaranteed to compare equal,
2197+
/// but not all equal arrays are identical.
21972198
///
21982199
/// - Complexity: O(1)
21992200
@_alwaysEmitIntoClient

0 commit comments

Comments
 (0)