Skip to content

Commit

Permalink
Fix outdated doc comments in Response+Body.swift (#2327)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxDesiatov committed Apr 22, 2020
1 parent 7f6c827 commit cc32aeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Vapor/Response/Response+Body.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ extension Response {
let callback: (BodyStreamWriter) -> ()
}

/// Represents an `HTTPMessage`'s body.
/// Represents a `Response`'s body.
///
/// let body = HTTPBody(string: "Hello, world!")
/// let body = Response.Body(string: "Hello, world!")
///
/// This can contain any data (streaming or static) and should match the message's `"Content-Type"` header.
public struct Body: CustomStringConvertible, ExpressibleByStringLiteral {
Expand All @@ -22,7 +22,7 @@ extension Response {
case stream(BodyStream)
}

/// An empty `HTTPBody`.
/// An empty `Response.Body`.
public static let empty: Body = .init()

public var string: String? {
Expand Down

0 comments on commit cc32aeb

Please sign in to comment.