Tweak formatting of function DocC comments (#407)

Motivation:

Tweaking the formatting of the DocC comments enables syntax highlighting
for parameter names in Xcode

Modifications:

Whitespace changes, capitalisation changes and added a parameter
description for `indexing` in HOACKHeaders `replaceOrAdd`, `add`.

Result:

More readable DocC comments
This commit is contained in:
Rick Newton-Rogers authored and GitHub committed 2023-07-05 05:35:47 -07:00
1 parent 6e35856efa
commit d5f0715865
16 files changed
+344 -339

No files matched your search

+3 -3
View File
@@ -158,9 +158,9 @@ public extension ByteBuffer {
/// Serializes a ``HTTP2ErrorCode`` into a `ByteBuffer` in the appropriate endianness
/// for use in HTTP/2.
///
/// - parameters:
/// - code: The ``HTTP2ErrorCode`` to serialize.
/// - returns: The number of bytes written.
/// - Parameters:
/// - code: The ``HTTP2ErrorCode`` to serialize.
/// - Returns: The number of bytes written.
mutating func write(http2ErrorCode code: HTTP2ErrorCode) -> Int {
return self.writeInteger(UInt32(http2ErrorCode: code))
}