Skip to content

Commit

Permalink
Update example_test
Browse files Browse the repository at this point in the history
  • Loading branch information
vcaesar committed Jul 2, 2017
1 parent 3a98099 commit 7e0d4f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clipboard/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import (
func Example() {
clipboard.WriteAll("日本語")
text, err := clipboard.ReadAll()
if err == nil {
if err != nil {
fmt.Println(err)
} else {
fmt.Println(text)
}

Expand Down

0 comments on commit 7e0d4f5

Please sign in to comment.