Skip to content

Commit

Permalink
README: Fix typo in example code comment for ServeHTTP method (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
Conor Landry authored and julienschmidt committed Oct 27, 2017
1 parent 1779f7e commit e1b9828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Define a router per host!
// We just use a map here, in which we map host names (with port) to http.Handlers
type HostSwitch map[string]http.Handler

// Implement the ServerHTTP method on our new type
// Implement the ServeHTTP method on our new type
func (hs HostSwitch) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// Check if a http.Handler is registered for the given host.
// If yes, use it to handle the request.
Expand Down

0 comments on commit e1b9828

Please sign in to comment.