Skip to content

Commit 8a81caf

Browse files
committed
fix docs
1 parent 3001511 commit 8a81caf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/AWSLambdaRuntime/Lambda+Codable.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public struct LambdaJSONOutputEncoder<Output: Encodable>: LambdaOutputEncoder {
4343
extension LambdaCodableAdapter {
4444
/// Initializes an instance given an encoder, decoder, and a handler with a non-`Void` output.
4545
/// - Parameters:
46-
/// - encoder: The encoder object that will be used to encode the generic ``Output`` obtained from the `handler`'s `outputWriter` into a ``ByteBuffer``.
47-
/// - decoder: The decoder object that will be used to decode the received ``ByteBuffer`` event into the generic ``Event`` type served to the `handler`.
46+
/// - encoder: The encoder object that will be used to encode the generic `Output` obtained from the `handler`'s `outputWriter` into a `ByteBuffer`.
47+
/// - decoder: The decoder object that will be used to decode the received `ByteBuffer` event into the generic `Event` type served to the `handler`.
4848
/// - handler: The handler object.
4949
public init(
5050
encoder: JSONEncoder,
@@ -68,8 +68,8 @@ extension LambdaCodableAdapter {
6868
extension LambdaRuntime {
6969
/// Initialize an instance with a ``LambdaHandler`` defined in the form of a closure **with a non-`Void` return type**.
7070
/// - Parameter body: The handler in the form of a closure.
71-
/// - Parameter encoder: The encoder object that will be used to encode the generic ``Output`` into a ``ByteBuffer``. ``JSONEncoder()`` used as default.
72-
/// - Parameter decoder: The decoder object that will be used to decode the incoming ``ByteBuffer`` event into the generic ``Event`` type. ``JSONDecoder()`` used as default.
71+
/// - Parameter encoder: The encoder object that will be used to encode the generic `Output` into a `ByteBuffer`. `JSONEncoder()` used as default.
72+
/// - Parameter decoder: The decoder object that will be used to decode the incoming `ByteBuffer` event into the generic `Event` type. `JSONDecoder()` used as default.
7373
public convenience init<Event: Decodable, Output>(
7474
body: @escaping (Event, LambdaContext) async throws -> Output,
7575
encoder: JSONEncoder = JSONEncoder(),
@@ -93,9 +93,9 @@ extension LambdaRuntime {
9393
self.init(handler: handler)
9494
}
9595

96-
/// Initialize an instance with a ``LambdaHandler`` defined in the form of a closure **with a `Void` return type**.
96+
/// Initialize an instance with a `LambdaHandler` defined in the form of a closure **with a `Void` return type**.
9797
/// - Parameter body: The handler in the form of a closure.
98-
/// - Parameter decoder: The decoder object that will be used to decode the incoming ``ByteBuffer`` event into the generic ``Event`` type. ``JSONDecoder()`` used as default.
98+
/// - Parameter decoder: The decoder object that will be used to decode the incoming `ByteBuffer` event into the generic `Event` type. `JSONDecoder()` used as default.
9999
public convenience init<Event: Decodable>(
100100
body: @escaping (Event, LambdaContext) async throws -> Void,
101101
decoder: JSONDecoder = JSONDecoder()

0 commit comments

Comments
 (0)