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 {