From cfc68f988827c5f3e0a83b3eda10154608bdcb9c Mon Sep 17 00:00:00 2001 From: Yuki Ito Date: Wed, 24 Jan 2018 02:17:15 +0900 Subject: [PATCH] Fix ugly variable name --- cmux.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmux.go b/cmux.go index 1b60e09..8040342 100644 --- a/cmux.go +++ b/cmux.go @@ -115,10 +115,10 @@ type cMux struct { func matchersToMatchWriters(matchers []Matcher) []MatchWriter { mws := make([]MatchWriter, 0, len(matchers)) - for _, _m := range matchers { - m := _m + for _, m := range matchers { + cm := m mws = append(mws, func(w io.Writer, r io.Reader) bool { - return m(r) + return cm(r) }) } return mws