From 340f270beb2c40f9a6c4468fa854ad37ff9cc265 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 30 Nov 2015 19:51:54 +0200 Subject: [PATCH] Fixed a typo --- server_example_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_example_test.go b/server_example_test.go index a87f3b1..27a695e 100644 --- a/server_example_test.go +++ b/server_example_test.go @@ -87,7 +87,7 @@ func ExampleServer() { func ExampleRequestCtx_Hijack() { // hijackHandler is called on hijacked connection. hijackHandler := func(c net.Conn) { - fmt.Fprintf(c, "This message is sent over a hijacked connection to the client %d\n", c.RemoteAddr()) + fmt.Fprintf(c, "This message is sent over a hijacked connection to the client %s\n", c.RemoteAddr()) fmt.Fprintf(c, "Send me something and I'll echo it to you\n") var buf [1]byte for {