all: Fix typos in function names and comments

This commit is contained in:
Oleksandr Redko 2023-05-22 20:11:12 +03:00 committed by Bjørn Erik Pedersen
parent 12dc9a6e4a
commit 9009c8cdca
27 changed files with 41 additions and 41 deletions

View file

@ -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]

View file

@ -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("은행 😄 은행")},