From 722c4d24ddb50ad9b2690c16eb1a10e916c8d011 Mon Sep 17 00:00:00 2001 From: hang Date: Wed, 18 May 2016 21:18:57 +0800 Subject: [PATCH] fix expression error in tanslated version --- de/08.1.md | 2 +- ja/07.2.md | 2 +- ja/08.1.md | 2 +- pt-br/08.1.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/de/08.1.md b/de/08.1.md index ed6dbb5d..4ae119ec 100644 --- a/de/08.1.md +++ b/de/08.1.md @@ -266,7 +266,7 @@ Some of you may be thinking the following: this server does not do anything mean func handleClient(conn net.Conn) { conn.SetReadDeadline(time.Now().Add(2 * time.Minute)) // set 2 minutes timeout - request := make([]byte, 128) // set maximum request length to 128KB to prevent flood based attacks + request := make([]byte, 128) // set maximum request length to 128B to prevent flood based attacks defer conn.Close() // close connection before exit for { read_len, err := conn.Read(request) diff --git a/ja/07.2.md b/ja/07.2.md index 246b89b8..421dd29d 100644 --- a/ja/07.2.md +++ b/ja/07.2.md @@ -185,7 +185,7 @@ JSONの出力に対して、struct tagを定義する場合注意すべきいく // ID はJSONの中にエクスポートされません。 ID int `json:"-"` - // ServerName の値は二次JSONエンコーディングが行われます。 + // ServerName2 の値は二次JSONエンコーディングが行われます。 ServerName string `json:"serverName"` ServerName2 string `json:"serverName2,string"` diff --git a/ja/08.1.md b/ja/08.1.md index cea84c91..2d2b461a 100644 --- a/ja/08.1.md +++ b/ja/08.1.md @@ -255,7 +255,7 @@ Go言語ではnetパッケージの`DialTCP`関数によってTCP接続を一つ func handleClient(conn net.Conn) { conn.SetReadDeadline(time.Now().Add(2 * time.Minute)) // set 2 minutes timeout - request := make([]byte, 128) // set maxium request length to 128KB to prevent flood attack + request := make([]byte, 128) // set maxium request length to 128B to prevent flood attack defer conn.Close() // close connection before exit for { read_len, err := conn.Read(request) diff --git a/pt-br/08.1.md b/pt-br/08.1.md index ed6dbb5d..4ae119ec 100644 --- a/pt-br/08.1.md +++ b/pt-br/08.1.md @@ -266,7 +266,7 @@ Some of you may be thinking the following: this server does not do anything mean func handleClient(conn net.Conn) { conn.SetReadDeadline(time.Now().Add(2 * time.Minute)) // set 2 minutes timeout - request := make([]byte, 128) // set maximum request length to 128KB to prevent flood based attacks + request := make([]byte, 128) // set maximum request length to 128B to prevent flood based attacks defer conn.Close() // close connection before exit for { read_len, err := conn.Read(request)