Skip to content

Commit 7187fb4

Browse files
committed
Fix typos
1 parent 973bc37 commit 7187fb4

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

Sources/NetworkLayer/Classes/Core/Builders/RequestBuilder/RequestBodyEncoder/RequestBodyEncoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct RequestBodyEncoder: IRequestBodyEncoder {
2525
request.httpBody = data
2626
case let .encodable(encodable):
2727
request.httpBody = try jsonEncoder.encode(encodable)
28-
case let .dictonary(dictionary):
28+
case let .dictionary(dictionary):
2929
request.httpBody = try JSONSerialization.data(withJSONObject: dictionary)
3030
}
3131
}

Sources/NetworkLayerInterfaces/Classes/Core/Models/IRequest.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public protocol IRequest {
3030
/// The HTTP method.
3131
var httpMethod: HTTPMethod { get }
3232

33-
/// A dictonary that contains the request's body.
33+
/// A dictionary that contains the request's body.
3434
var httpBody: RequestBody? { get }
3535

3636
/// An alias for the cache policy.
@@ -58,7 +58,7 @@ public extension IRequest {
5858
60
5959
}
6060

61-
/// A dictonary that contains the request's body.
61+
/// A dictionary that contains the request's body.
6262
var httpBody: RequestBody? {
6363
nil
6464
}

Sources/NetworkLayerInterfaces/Classes/Core/Models/RequestBody.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import Foundation
88
public enum RequestBody {
99
case data(Data)
1010
case encodable(Encodable)
11-
case dictonary([String: Any])
11+
case dictionary([String: Any])
1212
}

Tests/NetworkLayerTests/Classes/Tests/UnitTests/RequestParametersEncoderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// network-layer
3-
// Copyright © 2023 Space Code. All rights reserved.
3+
// Copyright © 2024 Space Code. All rights reserved.
44
//
55

66
import Foundation

0 commit comments

Comments
 (0)