aboutsummaryrefslogtreecommitdiff
path: root/src/net/http
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/http')
-rw-r--r--src/net/http/triv.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/http/triv.go b/src/net/http/triv.go
index 32edbbb344..f614922c24 100644
--- a/src/net/http/triv.go
+++ b/src/net/http/triv.go
@@ -39,7 +39,7 @@ type Counter struct {
func (ctr *Counter) String() string {
ctr.mu.Lock()
defer ctr.mu.Unlock()
- return fmt.Sprintf("%d", ctr.n)
+ return strconv.Itoa(ctr.n)
}
func (ctr *Counter) ServeHTTP(w http.ResponseWriter, req *http.Request) {