v: minor change in the output for an unknown help topic (#13927)

pull/13930/head
StunxFS 2022-04-04 01:36:10 -04:00 committed by GitHub
parent 719a3b5de3
commit 1211b2e941
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -38,10 +38,11 @@ pub fn print_and_exit(topic string) {
fn known_topics(topicdir string) string {
mut res := []string{}
res << 'Known help topics:'
res << 'Known help topics: '
topic_files := os.glob(os.join_path(topicdir, '*.txt')) or { [] }
mut topics := topic_files.map(os.file_name(it).replace('.txt', ''))
topics.sort()
res << topics.join(', ')
res << '.'
return res.join('')
}