Skip to content

Commit 028b915

Browse files
Rename identity(_:) initializer from transition(_:)
1 parent 1002353 commit 028b915

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Sources/LightTableDelta/Delta.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ extension Delta where Element: ~Copyable {
204204
extension Delta: Copyable where Element: Copyable {
205205
/// Returns a transition delta where both the source and target share the same element.
206206
@inlinable @inline(__always)
207-
public static func transition(_ element: Element) -> Self {
207+
public static func identity(_ element: Element) -> Self {
208208
.transition(source: element, target: element)
209209
}
210210

Sources/LightTableDelta/Documentation.docc/Delta.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
- ``source(_:)``
88
- ``target(_:)``
99
- ``transition(source:target:)``
10-
- ``transition(_:)``
1110

1211
### Initializers
1312

@@ -32,3 +31,7 @@
3231
- ``asyncMap(_:)``
3332
- ``mapAny(_:)``
3433
- ``mapAll(_:)``
34+
35+
### Identity Delta
36+
37+
- ``identity(_:)``

0 commit comments

Comments
 (0)