Skip to content

Commit

Permalink
Fix up doc formatting, use spaces for alignment (tabs are for indenta…
Browse files Browse the repository at this point in the history
…tion only).

This fixes issue where if user has tab width other than 4, some lines will become misaligned. For example, see the package description at https://godoc.org/github.com/gorilla/mux.
  • Loading branch information
dmitshur committed Apr 22, 2015
1 parent 8096f47 commit 9641367
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 89,7 @@ There are several other matchers that can be added. To match path prefixes:
r.MatcherFunc(func(r *http.Request, rm *RouteMatch) bool {
return r.ProtoMajor == 0
})
})
...and finally, it is possible to combine several matchers in a single route:
Expand Down Expand Up @@ -164,8 164,8 @@ This also works for host variables:
// url.String() will be "http://news.domain.com/articles/technology/42"
url, err := r.Get("article").URL("subdomain", "news",
"category", "technology",
"id", "42")
"category", "technology",
"id", "42")
All variables defined in the route are required, and their values must
conform to the corresponding patterns. These requirements guarantee that a
Expand Down Expand Up @@ -193,7 193,7 @@ as well:
// "http://news.domain.com/articles/technology/42"
url, err := r.Get("article").URL("subdomain", "news",
"category", "technology",
"id", "42")
"category", "technology",
"id", "42")
*/
package mux

0 comments on commit 9641367

Please sign in to comment.