update 2.2md,2.3md,fixed 8.1md code error

This commit is contained in:
chenwenli
2012-10-29 17:18:06 +08:00
parent 5fbcc31ed7
commit c693d0ea00
3 changed files with 50 additions and 48 deletions

2
8.1.md
View File

@@ -215,7 +215,7 @@ Go语言中通过net包中的`DialTCP`函数来建立一个TCP连接并返回
conn.Write([]byte(daytime)) // don't care about return value
// we're finished with this client
}
func checkError(err os.Error) {
func checkError(err error) {
if err != nil {
fmt.Fprintf(os.Stderr, "Fatal error: %s", err.Error())
os.Exit(1)