File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Sources/ComposableArchitecture/SwiftUI Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -89,14 +89,14 @@ where ID: Hashable {
89
89
_modify { yield & self . dictionary [ self . ids [ position] ] ! }
90
90
}
91
91
92
- /// Direct access to an element by its identifier.
93
- ///
94
- /// - Parameter id: The identifier of element to access. Must be a valid identifier for an element
95
- /// of the array and will _not_ insert elements that are not already in the array, or remove
96
- /// elements when passed `nil`. Use `append` or `insert(_:at:)` to insert elements. Use
97
- /// `remove(id:)` to remove an element by its identifier.
98
- /// - Returns: The element.
99
92
#if DEBUG
93
+ /// Direct access to an element by its identifier.
94
+ ///
95
+ /// - Parameter id: The identifier of element to access. Must be a valid identifier for an
96
+ /// element of the array and will _not_ insert elements that are not already in the array, or
97
+ /// remove elements when passed `nil`. Use `append` or `insert(_:at:)` to insert elements. Use
98
+ /// `remove(id:)` to remove an element by its identifier.
99
+ /// - Returns: The element.
100
100
public subscript( id id: ID ) -> Element ? {
101
101
get { self . dictionary [ id] }
102
102
set {
You can’t perform that action at this time.
0 commit comments