Skip to content

Commit

Permalink
Merge pull request #30 from kaboc/fix
Browse files Browse the repository at this point in the history
Fix typo in generator.go
  • Loading branch information
greymd authored May 17, 2020
2 parents 1041dbc + be5cf9b commit f8bd26f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ var pconfigs = []PunctuationConfig{

// Config ... main で受け取られる引数、オプション
type Config struct {
TargetName string `docopt:"<name>"`
EmojiNum int `docopt:"-e"`
PunctiuationLevel int `docopt:"-p"`
TargetName string `docopt:"<name>"`
EmojiNum int `docopt:"-e"`
PunctuationLevel int `docopt:"-p"`
}

// Start ... おじさんの文言を生成
Expand All @@ -53,7 +53,7 @@ func Start(config Config) (string, error) {
// メッセージに含まれるタグを変換
selectedMessage = pattern.ConvertTags(selectedMessage, config.TargetName, config.EmojiNum)

level := config.PunctiuationLevel
level := config.PunctuationLevel
if level < 0 || level > 3 {
return "", fmt.Errorf("句読点挿入頻度レベルが不正です: %v", level)
}
Expand Down

0 comments on commit f8bd26f

Please sign in to comment.