1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

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('')
}