Skip to content

Commit 05670ca

Browse files
authored
Move documentation inside compiler directive (#118)
* Duplicate docs for compiler directive * Remove RELEASE doc
1 parent 2af6ac2 commit 05670ca

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Sources/ComposableArchitecture/SwiftUI/IdentifiedArray.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ where ID: Hashable {
8989
_modify { yield &self.dictionary[self.ids[position]]! }
9090
}
9191

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.
9992
#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.
100100
public subscript(id id: ID) -> Element? {
101101
get { self.dictionary[id] }
102102
set {

0 commit comments

Comments
 (0)