Skip to content

Commit 3eb9b89

Browse files
authored
Merge pull request #473 from mtgto/fix_misspell
Fix misspell `serialise`
2 parents 9483a5d + 4c4643e commit 3eb9b89

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ All notable changes to this project will be documented in this file. Changes not
1818
1919
# [Unreleased]
2020

21+
## Fixed
22+
23+
- Fix misspell `serialise`. ([#473](https://github.com/httpswift/swifter/pull/473)) by [@mtgto](https://github.com/mtgto)
24+
2125
# [1.5.0]
2226

2327
## Added

XCode/Sources/HttpResponse.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public enum HttpResponseBody {
5151
try $0.write(data)
5252
})
5353
case .htmlBody(let body):
54-
let serialised = "<html><meta charset=\"UTF-8\"><body>\(body)</body></html>"
55-
let data = [UInt8](serialised.utf8)
54+
let serialized = "<html><meta charset=\"UTF-8\"><body>\(body)</body></html>"
55+
let data = [UInt8](serialized.utf8)
5656
return (data.count, {
5757
try $0.write(data)
5858
})
@@ -61,14 +61,14 @@ public enum HttpResponseBody {
6161
try $0.write(data)
6262
})
6363
case .custom(let object, let closure):
64-
let serialised = try closure(object)
65-
let data = [UInt8](serialised.utf8)
64+
let serialized = try closure(object)
65+
let data = [UInt8](serialized.utf8)
6666
return (data.count, {
6767
try $0.write(data)
6868
})
6969
}
7070
} catch {
71-
let data = [UInt8]("Serialisation error: \(error)".utf8)
71+
let data = [UInt8]("Serialization error: \(error)".utf8)
7272
return (data.count, {
7373
try $0.write(data)
7474
})

0 commit comments

Comments
 (0)