Bläddra i källkod

go fmt'd cmd.go

Josh Yan 11 månader sedan
förälder
incheckning
26bfc1c443
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      cmd/cmd.go

+ 1 - 1
cmd/cmd.go

@@ -739,7 +739,7 @@ type displayResponseState struct {
 	wordBuffer string
 	wordBuffer string
 }
 }
 
 
-// using runewidth instead of len (cus length is number of bytes, we wnat display length)
+// using runewidth instead of len (cus length is number of bytes, we want display length)
 func displayResponse(content string, wordWrap bool, state *displayResponseState) {
 func displayResponse(content string, wordWrap bool, state *displayResponseState) {
 	termWidth, _, _ := term.GetSize(int(os.Stdout.Fd()))
 	termWidth, _, _ := term.GetSize(int(os.Stdout.Fd()))
 	if wordWrap && termWidth >= 10 {
 	if wordWrap && termWidth >= 10 {