Sacha Ligthert 2 жил өмнө
parent
commit
78d73a7920
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  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)