Skip to content

Commit b3aa123

Browse files
committed
Fix issue with documentation
- Accidentally typed "DateFormatting" when it's supposed to be "DateFormattingOptional".
1 parent 0a6c254 commit b3aa123

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ATProtoKit/Utilities/DateFormatting.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public struct DateFormatting: Codable {
114114
/// self._indexedAt = DateFormattingOptional(wrappedValue: indexedAt)
115115
/// ```
116116
///
117-
/// In `init(from decoder: Decoder) throws`, attempt to to decode each `Date` property using `@DateFormatting`'s `wrappedValue`:
117+
/// In `init(from decoder: Decoder) throws`, attempt to to decode each `Date` property using `@DateFormattingOptional`'s `wrappedValue`:
118118
/// ```swift
119119
/// public init(from decoder: Decoder) throws {
120120
/// let container = try decoder.container(keyedBy: CodingKeys.self)
@@ -123,7 +123,7 @@ public struct DateFormatting: Codable {
123123
/// }
124124
/// ```
125125
///
126-
/// Finally, for `encode(to encoder: Encoder)`, ensure that each `Date` property wrapped with `@DateFormatting` is encoded using the custom encoding logic defined in the `DateFormattingOptional` wrapper, using the underscored (`_`) version of the name of the property.:
126+
/// Finally, for `encode(to encoder: Encoder)`, ensure that each `Date` property wrapped with `@DateFormattingOptional` is encoded using the custom encoding logic defined in the `DateFormattingOptional` wrapper, using the underscored (`_`) version of the name of the property.:
127127
/// ```swift
128128
/// public func encode(to encoder: Encoder) throws {
129129
/// var container = encoder.container(keyedBy: CodingKeys.self)

0 commit comments

Comments
 (0)