Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ingtk committed Oct 28, 2021
1 parent 60ed5d3 commit 694c7dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/tokenize/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,21 @@ func OptionCheck(args []string) error {
return nil
}

func selectDict(path, sysdict string, shurink bool) (*dict.Dict, error) {
func selectDict(path, sysdict string, shrink bool) (*dict.Dict, error) {
if path != "" {
if shurink {
if shrink {
return dict.LoadShrink(path)
}
return dict.LoadDictFile(path)
}
switch sysdict {
case "ipa":
if shurink {
if shrink {
return ipa.DictShrink(), nil
}
return ipa.Dict(), nil
case "uni":
if shurink {
if shrink {
return uni.DictShrink(), nil
}
return uni.Dict(), nil
Expand Down

0 comments on commit 694c7dc

Please sign in to comment.