Skip to content

Commit

Permalink
stop using fmt.Fprintln
Browse files Browse the repository at this point in the history
  • Loading branch information
reuvenharrison committed Sep 7, 2024
1 parent 29cc0cc commit 77a2770
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checker/generator/value_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (v ValueSetA) generate(out io.Writer) {
}
for _, adverb := range adverbs {
message := generateMessage(v.hierarchy, noun, v.attributiveAdjective, v.predicativeAdjective, action, adverb)
fmt.Fprintln(out, fmt.Sprintf("%s: %s", id, message))
fmt.Fprintf(out, "%s: %s\n", id, message)
}
}
}
Expand All @@ -97,7 +97,7 @@ func (v ValueSetB) generate(out io.Writer) {

for _, noun := range v.nouns {
for _, action := range v.actions {
fmt.Fprintln(out, fmt.Sprintf("%s: %s", generateId(v.hierarchy, noun, action), generateMessage(v.hierarchy, noun, v.attributiveAdjective, v.predicativeAdjective, action)))
fmt.Fprintf(out, "%s: %s\n", generateId(v.hierarchy, noun, action), generateMessage(v.hierarchy, noun, v.attributiveAdjective, v.predicativeAdjective, action))
}
}
}

0 comments on commit 77a2770

Please sign in to comment.