From 9009c8cdca448e50704f7ecd1a3918c5919b0f37 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Mon, 22 May 2023 20:11:12 +0300 Subject: all: Fix typos in function names and comments --- helpers/emoji.go | 2 +- helpers/emoji_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'helpers') 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("은행 😄 은행")}, -- cgit v1.2.3