Skip to content

Commit

Permalink
fix(docs): comments
Browse files Browse the repository at this point in the history
  • Loading branch information
h2non committed Feb 25, 2016
1 parent 46d4a62 commit b9d3efd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (c *Client) AddCookie(cookie *http.Cookie) *Client {
return c
}

// AddCookie sets a new cookie field by key and value.
// SetCookies sets a new cookie field by key and value.
// without overwriting any existent header.
func (c *Client) SetCookies(data map[string]string) *Client {
c.Use(cookies.SetMap(data))
Expand Down Expand Up @@ -196,7 +196,7 @@ func (c *Client) UseError(fn context.HandlerFunc) *Client {
}

// UseParent uses another Client as parent
// inheriting it's middleware stack and configuration.
// inheriting its middleware stack and configuration.
func (c *Client) UseParent(parent *Client) *Client {
c.Parent = parent
c.Context.UseParent(parent.Context)
Expand Down
2 changes: 1 addition & 1 deletion plugins/redirect/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# gentleman/redirect [![Build Status](https://travis-ci.org/h2non/gentleman.png)](https://travis-ci.org/h2non/gentleman) [![GoDoc](https://godoc.org/github.com/h2non/gentleman?status.svg)](https://godoc.org/github.com/h2non/gentleman) [![API](https://img.shields.io/badge/api-beta-green.svg?style=flat)](https://godoc.org/github.com/h2non/gentleman) [![Go Report Card](https://goreportcard.com/badge/github.com/h2non/gentleman)](https://goreportcard.com/report/github.com/h2non/gentleman)
# gentleman/redirect [![Build Status](https://travis-ci.org/h2non/gentleman.png)](https://travis-ci.org/h2non/gentleman) [![GoDoc](https://godoc.org/github.com/h2non/gentleman?status.svg)](https://godoc.org/github.com/h2non/gentleman) [![API](https://img.shields.io/badge/status-stable-green.svg?style=flat)](https://godoc.org/github.com/h2non/gentleman) [![Go Report Card](https://goreportcard.com/badge/github.com/h2non/gentleman)](https://goreportcard.com/report/github.com/h2non/gentleman)

gentleman's plugin to easily define HTTP request redirect policy and settings.

Expand Down
2 changes: 1 addition & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (r *Request) AddQuery(name, value string) *Request {
return r
}

// QueryParams sets URL query params based on the given map.
// SetQueryParams sets URL query params based on the given map.
func (r *Request) SetQueryParams(params map[string]string) *Request {
r.Use(query.SetMap(params))
return r
Expand Down

0 comments on commit b9d3efd

Please sign in to comment.