aboutsummaryrefslogtreecommitdiffhomepage
path: root/helpers
diff options
context:
space:
mode:
authorOleksandr Redko <[email protected]>2023-05-22 20:11:12 +0300
committerBjรธrn Erik Pedersen <[email protected]>2023-06-19 09:26:29 +0200
commit9009c8cdca448e50704f7ecd1a3918c5919b0f37 (patch)
tree960aaa2b80a07c959360ad66fc79ebe7c0fa9632 /helpers
parent12dc9a6e4acd5280a3e8b1658cbb96669fa97057 (diff)
downloadhugo-9009c8cdca448e50704f7ecd1a3918c5919b0f37.tar.gz
hugo-9009c8cdca448e50704f7ecd1a3918c5919b0f37.zip
all: Fix typos in function names and comments
Diffstat (limited to 'helpers')
-rw-r--r--helpers/emoji.go2
-rw-r--r--helpers/emoji_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/helpers/emoji.go b/helpers/emoji.go
index eb47ff448..a1617c48d 100644
--- a/helpers/emoji.go
+++ b/helpers/emoji.go
@@ -30,7 +30,7 @@ var (
emojiMaxSize int
)
-// Emoji returns the emojy given a key, e.g. ":smile:", nil if not found.
+// Emoji returns the emoji given a key, e.g. ":smile:", nil if not found.
func Emoji(key string) []byte {
emojiInit.Do(initEmoji)
return emojis[key]
diff --git a/helpers/emoji_test.go b/helpers/emoji_test.go
index 6485bb5fe..b45444d45 100644
--- a/helpers/emoji_test.go
+++ b/helpers/emoji_test.go
@@ -41,7 +41,7 @@ func TestEmojiCustom(t *testing.T) {
{" :beer: :", []byte(" ๐Ÿบ :")},
{":beer: and :smile: and another :beer:!", []byte("๐Ÿบ and ๐Ÿ˜„ and another ๐Ÿบ!")},
{" :beer: : ", []byte(" ๐Ÿบ : ")},
- {"No smilies for you!", []byte("No smilies for you!")},
+ {"No smiles for you!", []byte("No smiles for you!")},
{" The motto: no smiles! ", []byte(" The motto: no smiles! ")},
{":hugo_is_the_best_static_gen:", []byte(":hugo_is_the_best_static_gen:")},
{"์€ํ–‰ :smile: ์€ํ–‰", []byte("์€ํ–‰ ๐Ÿ˜„ ์€ํ–‰")},