Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Henvald committed May 26, 2022
1 parent 6daeeb3 commit 2fd0516
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ func main() {
###### bash

```bash
$ go get "github.com/fre5h/transliteration-go"@v1.1.0
go: downloading github.com/fre5h/transliteration-go v1.1.0
go: added github.com/fre5h/transliteration-go v1.1.0
$ go get "github.com/fre5h/transliteration-go"@v1.1.2
go: downloading github.com/fre5h/transliteration-go v1.1.2
go: added github.com/fre5h/transliteration-go v1.1.2

$ go run main.go Слава Україні!
transliterated text: Slava Ukraini!
Expand Down
4 changes: 1 addition & 3 deletions transliteration.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ func UkrToLat(ukrainianText string) (transliteratedText string) {
return
}

func processZghException(firstChar rune, secondChar rune) (result string) {
result = ""

func processZghException(firstChar, secondChar rune) (result string) {
if firstChar == 'З' && secondChar == 'г' {
result = "Zgh"
} else if firstChar == 'З' && secondChar == 'Г' {
Expand Down

0 comments on commit 2fd0516

Please sign in to comment.