No plural when only one result
This commit is contained in:
parent
74c7c6bfa5
commit
43b3610dc1
1 changed files with 5 additions and 1 deletions
|
|
@ -60,7 +60,11 @@ func Run(query string, ses query.Session) {
|
||||||
nResults++
|
nResults++
|
||||||
}
|
}
|
||||||
if nResults > 0 {
|
if nResults > 0 {
|
||||||
fmt.Printf("-----------\n%d Results\n", nResults)
|
results := "Result"
|
||||||
|
if nResults > 1 {
|
||||||
|
results += "s"
|
||||||
|
}
|
||||||
|
fmt.Printf("-----------\n%d %s\n", nResults, results)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue