Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Fix Errorf wrong type #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (c *ClientConn) CutText(text string) error {

for _, char := range text {
if char > unicode.MaxLatin1 {
return fmt.Errorf("Character '%s' is not valid Latin-1", char)
return fmt.Errorf("Character '%v' is not valid Latin-1", char)
}

if err := binary.Write(&buf, binary.BigEndian, uint8(char)); err != nil {
Expand Down