Explorar o código

Merge pull request #11 from grafov/master

Fix argument type.
mattn %!s(int64=9) %!d(string=hai) anos
pai
achega
30a891c33c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      _example/example.go

+ 1 - 1
_example/example.go

@@ -7,7 +7,7 @@ import (
 )
 )
 
 
 func main() {
 func main() {
-	if isatty.IsTerminal(int(os.Stdout.Fd())) {
+	if isatty.IsTerminal(os.Stdout.Fd()) {
 		fmt.Println("Is Terminal")
 		fmt.Println("Is Terminal")
 	} else {
 	} else {
 		fmt.Println("Is Not Terminal")
 		fmt.Println("Is Not Terminal")