Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl committed Apr 9, 2016
1 parent e772f53 commit 45e3794
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ struct GithubShowUser: Target {

// Optional, default is empty
var parameters: [String: AnyObject] {
return [:]
return [:]
}

// Optional, default is .Form, means submit parameters using form-data
// Optional, default is .URL, means submit parameters using `x-www-form-urlencoded`
var parameterEncoding: ParameterEncoding {
return .Form
return .URL
}
}
```
Expand Down
4 changes: 2 additions & 2 deletions Readme_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ struct GithubShowUser: Target {
return [:]
}

// 可以省略,HTTP 请求的表单数据的编码方式,默认为 .Form,即以 HTTP 表单方式提交 parameters
// 可以省略,HTTP 请求的表单数据的编码方式,默认为 .URL,即以 HTTP 表单方式提交 parameters
var parameterEncoding: ParameterEncoding {
return .Form
return .URL
}
}
```
Expand Down

0 comments on commit 45e3794

Please sign in to comment.