Update 15.1.md (#509)

fix some bug
This commit is contained in:
Sarlor
2018-06-13 21:42:12 +08:00
committed by 无闻
parent f0d0b22b1a
commit 9df6283011

View File

@@ -83,8 +83,8 @@ func main() {
fmt.Println("What to send to the server? Type Q to quit.") fmt.Println("What to send to the server? Type Q to quit.")
input, _ := inputReader.ReadString('\n') input, _ := inputReader.ReadString('\n')
trimmedInput := strings.Trim(input, "\r\n") trimmedInput := strings.Trim(input, "\r\n")
// fmt.Printf("input:--s%--", input) // fmt.Printf("input:--%s--", input)
// fmt.Printf("trimmedInput:--s%--", trimmedInput) // fmt.Printf("trimmedInput:--%s--", trimmedInput)
if trimmedInput == "Q" { if trimmedInput == "Q" {
return return
} }