浏览代码

Trying that godoc format

Sacha Ligthert 2 年之前
父节点
当前提交
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)