mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 05:11:49 +08:00
修正dial.go中格式化输出语句 (#411)
* 修正dial.go例子中格式化输出语句的错误 * 修正dial.go例子中格式化输出语句的错误
This commit is contained in:
@@ -17,8 +17,8 @@ func main() {
|
||||
}
|
||||
func checkConnection(conn net.Conn, err error) {
|
||||
if err != nil {
|
||||
fmt.Printf("error %v connecting!")
|
||||
fmt.Printf("error %v connecting!", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
fmt.Println("Connection is made with %v", conn)
|
||||
fmt.Printf("Connection is made with %v\n", conn)
|
||||
}
|
||||
|
Reference in New Issue
Block a user