Skip to content

Commit

Permalink
Add the @discardableResult attribute to OrderedSet.insert(_:at:). Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kielgillard committed Apr 13, 2021
1 parent d2395c5 commit 727bd87
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ extension OrderedSet {
/// type, if it implements high-quality hashing. (Insertions need to make
/// room in the storage array to add the inserted element.)
@inlinable
@discardableResult
public mutating func insert(
_ item: Element,
at index: Index
Expand Down

0 comments on commit 727bd87

Please sign in to comment.