From 10c11b1426e935fee3a46788d342401901e44b3c Mon Sep 17 00:00:00 2001 From: Aksel Meola Date: Fri, 14 May 2021 13:58:34 +0300 Subject: [PATCH] Add methods for prefixing and suffixing Closes #5 Align examples --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1dae6f6..b5f5ded 100644 --- a/README.md +++ b/README.md @@ -337,8 +337,8 @@ LcFirst simply returns result by lower casing first letter of string and it can Prefix makes sure string has been prefixed with a given string and avoids adding it again if it has. ```go -ufo := stringy.New("known flying object") -fmt.Println(ufo.Prefix("un")) // unknown flying object + ufo := stringy.New("known flying object") + fmt.Println(ufo.Prefix("un")) // unknown flying object ``` @@ -347,8 +347,8 @@ fmt.Println(ufo.Prefix("un")) // unknown flying object Suffix makes sure string has been suffixed with a given string and avoids adding it again if it has. ```go -pun := stringy.New("this really is a cliff") -fmt.Println(pun.Suffix("hanger")) // this really is a cliffhanger + pun := stringy.New("this really is a cliff") + fmt.Println(pun.Suffix("hanger")) // this really is a cliffhanger ```