diff --git a/Coin/Coin.go b/Coin/Coin.go index 2087560..a9f561e 100644 --- a/Coin/Coin.go +++ b/Coin/Coin.go @@ -3,6 +3,7 @@ package Coin import ( "fmt" "math/rand" + "strings" "time" "github.com/fatih/color" @@ -40,7 +41,7 @@ func Toss(castAmount int) { if castAmount > 1 { color.Yellow("Tossing %d coins...\n", castAmount) } else { - color.Yellow("Tossing coin...\n", castAmount) + color.Yellow("Tossing coin...\n") } - fmt.Println(fmt.Sprint(coins)) + fmt.Println(strings.Trim(fmt.Sprint(coins), "[]")) }