update 2.2md,2.3md,fixed 8.1md code error
This commit is contained in:
2
8.1.md
2
8.1.md
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user