Ver Fonte

Trying that godoc format

Sacha Ligthert há 2 anos atrás
pai
commit
78d73a7920
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      food.go

+ 2 - 0
food.go

@@ -4,6 +4,8 @@ import (
 	"math/rand"
 )
 
+// getFoodItem returns an emoji from a string used to represent food
+// Takes no arguments, but returns an emoji/rune from a predefined string
 func getFoodItem() rune {
 	var foods string = "🐵🐱🐷🐁🐇🐿🦇🐓🐣🐸🦎🍎🍏"
 	foodsRune := []rune(foods)