aboutsummaryrefslogtreecommitdiff
path: root/server_example_test.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-11-30 19:51:54 +0200
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-11-30 19:51:54 +0200
commit340f270beb2c40f9a6c4468fa854ad37ff9cc265 (patch)
tree8d6190013295fabe3c08caf814a1760403132209 /server_example_test.go
parentbytesconv code prettifying (diff)
downloadfasthttp-340f270beb2c40f9a6c4468fa854ad37ff9cc265.tar.gz
fasthttp-340f270beb2c40f9a6c4468fa854ad37ff9cc265.tar.bz2
fasthttp-340f270beb2c40f9a6c4468fa854ad37ff9cc265.zip
Fixed a typo
Diffstat (limited to 'server_example_test.go')
-rw-r--r--server_example_test.go2
1 files changed, 1 insertions, 1 deletions
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 {