diff options
author | Oleksandr Redko <[email protected]> | 2023-05-22 20:11:12 +0300 |
---|---|---|
committer | Bjรธrn Erik Pedersen <[email protected]> | 2023-06-19 09:26:29 +0200 |
commit | 9009c8cdca448e50704f7ecd1a3918c5919b0f37 (patch) | |
tree | 960aaa2b80a07c959360ad66fc79ebe7c0fa9632 /helpers | |
parent | 12dc9a6e4acd5280a3e8b1658cbb96669fa97057 (diff) | |
download | hugo-9009c8cdca448e50704f7ecd1a3918c5919b0f37.tar.gz hugo-9009c8cdca448e50704f7ecd1a3918c5919b0f37.zip |
all: Fix typos in function names and comments
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/emoji.go | 2 | ||||
-rw-r--r-- | helpers/emoji_test.go | 2 |
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("์ํ ๐ ์ํ")}, |