From c8357002a154177713885fa8ed1b5e5125557e17 Mon Sep 17 00:00:00 2001 From: Guoye Zhang Date: Wed, 24 Apr 2024 10:37:47 -0700 Subject: [PATCH] Update comment --- Sources/HTTPTypes/HTTPField.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/HTTPTypes/HTTPField.swift b/Sources/HTTPTypes/HTTPField.swift index d845031..82fd9a7 100644 --- a/Sources/HTTPTypes/HTTPField.swift +++ b/Sources/HTTPTypes/HTTPField.swift @@ -71,7 +71,8 @@ public struct HTTPField: Sendable, Hashable { /// Create an HTTP field from a name and a value. Leniently legalize the value. /// - Parameters: /// - name: The HTTP field name. - /// - value: The HTTP field value. Newlines and NULs are converted into space characters. + /// - lenientValue: The HTTP field value. Newlines and NULs are converted into space + /// characters. public init(name: Name, lenientValue: some Collection) { self.name = name self.rawValue = Self.lenientLegalizeValue(ISOLatin1String(lenientValue))