Skip to content

Commit 9d28bfe

Browse files
fabianfettktoso
andcommitted
Apply suggestions from code review
Co-authored-by: Konrad `ktoso` Malawski <[email protected]>
1 parent a7d842a commit 9d28bfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/AWSLambdaRuntime/Lambda+Codable.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ extension JSONEncoder: LambdaCodableEncoder {
133133
}
134134

135135
extension JSONEncoder {
136-
/// Convenience method to allow encoding json directly into a String. It can be used to encode a payload into an APIGateway.V2.Response's body.
136+
/// Convenience method to allow encoding json directly into a `String`. It can be used to encode a payload into an `APIGateway.V2.Response`'s body.
137137
public func encodeAsString<T: Encodable>(_ value: T) throws -> String {
138138
try String(decoding: self.encode(value), as: Unicode.UTF8.self)
139139
}
140140
}
141141

142142
extension JSONDecoder {
143-
/// Convenience method to allow decoding json directly from a String. It can be used to decode a payload from an APIGateway.V2.Request's body.
143+
/// Convenience method to allow decoding json directly from a `String`. It can be used to decode a payload from an `APIGateway.V2.Request`'s body.
144144
public func decode<T: Decodable>(_ type: T.Type, from string: String) throws -> T {
145145
try self.decode(type, from: Data(string.utf8))
146146
}

0 commit comments

Comments
 (0)