Skip to content

Commit 9ae451d

Browse files
authored
Merge pull request swiftlang#31505 from valeriyvan/FixExampleSnippetsSequenceAlgorithms.swift
Fixes example snippets in SequenceAlgorithms.swift
2 parents 08d133c + 933d8a8 commit 9ae451d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/SequenceAlgorithms.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ extension Sequence {
9696
/// let hues = ["Heliotrope": 296, "Coral": 16, "Aquamarine": 156]
9797
/// let leastHue = hues.min { a, b in a.value < b.value }
9898
/// print(leastHue)
99-
/// // Prints "Optional(("Coral", 16))"
99+
/// // Prints "Optional((key: "Coral", value: 16))"
100100
///
101101
/// - Parameter areInIncreasingOrder: A predicate that returns `true`
102102
/// if its first argument should be ordered before its second
@@ -141,7 +141,7 @@ extension Sequence {
141141
/// let hues = ["Heliotrope": 296, "Coral": 16, "Aquamarine": 156]
142142
/// let greatestHue = hues.max { a, b in a.value < b.value }
143143
/// print(greatestHue)
144-
/// // Prints "Optional(("Heliotrope", 296))"
144+
/// // Prints "Optional((key: "Heliotrope", value: 296))"
145145
///
146146
/// - Parameter areInIncreasingOrder: A predicate that returns `true` if its
147147
/// first argument should be ordered before its second argument;

0 commit comments

Comments
 (0)