Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix argument name in Quick Start example #44

Merged
merged 1 commit into from
Apr 23, 2017

Conversation

monowerker
Copy link
Contributor

Sources/main.swift:6:51: error: argument 'body' must precede argument 'contentType'
  return Response(.ok, contentType: "text/plain", body: "Hello World")
                       ~~~~~~~~~~~~~~~~~~~~~~~~~  ^~~~~~~~~~~~~~~~~~~
                       body: "Hello World"        contentType: "text/plain"
<unknown>:0: error: build had 1 command failures

```
Sources/main.swift:6:51: error: argument 'body' must precede argument 'contentType'
  return Response(.ok, contentType: "text/plain", body: "Hello World")
                       ~~~~~~~~~~~~~~~~~~~~~~~~~  ^~~~~~~~~~~~~~~~~~~
                       body: "Hello World"        contentType: "text/plain"
<unknown>:0: error: build had 1 command failures
```
```
Sources/main.swift:6:18: error: incorrect argument label in call (have '_:headers:contentType:body:', expected '_:headers:contentType:content:')
  return Response(.ok, headers: [], contentType: "text/plain", body: "Hello World")
                 ^                                             ~~~~
                                                               content
```
@monowerker monowerker changed the title Fix argument order in Quick Start example Fix argument name in Quick Start example Apr 23, 2017
@kylef kylef merged commit 8d6230b into kylef-archive:master Apr 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants