| commit | 1cd89f72170a07c349cbc5b59d53424a57e78c21 | [log] [tgz] |
|---|---|---|
| author | Justinas Stankevicius <justinas@justinas.me> | Sun May 25 20:57:32 2014 +0300 |
| committer | Justinas Stankevicius <justinas@justinas.me> | Sun May 25 20:57:32 2014 +0300 |
| tree | 158c03ea61849a93ce24b7a4213dbc7b49573c1b | |
| parent | 8c3789628746bab0dcae9ad9a1de1af9bd5f7356 [diff] |
Document the handling of nil.
diff --git a/chain.go b/chain.go index 5083c14..6f11eab 100644 --- a/chain.go +++ b/chain.go
@@ -26,6 +26,8 @@ // When the request comes in, it will be passed to m1, then m2, then m3 // and finally, the given handler // (assuming every middleware calls the following one) +// +// Then() treats nil as http.DefaultServeMux. func (c Chain) Then(h http.Handler) http.Handler { var final http.Handler if h != nil {