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

examples/word_counter: todo

This commit is contained in:
Alexander Medvednikov 2019-04-14 08:40:39 +02:00
parent 44677db75b
commit 2167d94b97
2 changed files with 3 additions and 2 deletions

View File

@ -21,4 +21,4 @@ anyone => 2
any => 1 any => 1
an => 4 an => 4
... ...
```: ```

View File

@ -18,7 +18,7 @@ fn main() {
if key == '' { if key == '' {
continue continue
} }
m[key] = m[key] + 1 m[key] = m[key] + 1 // TODO m[key]++
} }
} }
// Sort the keys // Sort the keys
@ -51,6 +51,7 @@ fn filter_word(word string) string {
return word.substr(start, end) return word.substr(start, end)
} }
// TODO remove once it's possible to call word[i].is_letter()
fn is_letter(c byte) bool { fn is_letter(c byte) bool {
return c.is_letter() return c.is_letter()
} }