Skip to content

Commit 3edcb3f

Browse files
committed
Fix misspell serialise
1 parent 9483a5d commit 3edcb3f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

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)