Skip to content

Commit 1a87a8c

Browse files
stephencelisnatecook1000
authored andcommitted
Document init(uniqueKeysAndValues:) precondition
1 parent 8990ed4 commit 1a87a8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/core/HashedCollections.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,6 +1776,7 @@ public struct Dictionary<Key : Hashable, Value> {
17761776
/// the new dictionary. Every key in `keysAndValues` must be unique.
17771777
/// - Returns: A new dictionary initialized with the elements of
17781778
/// `keysAndValues`.
1779+
/// - Precondition: The sequence must not have duplicate keys.
17791780
@_inlineable // FIXME(sil-serialize-all)
17801781
public init<S: Sequence>(
17811782
uniqueKeysWithValues keysAndValues: S

0 commit comments

Comments
 (0)