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:
parent
44677db75b
commit
2167d94b97
@ -21,4 +21,4 @@ anyone => 2
|
||||
any => 1
|
||||
an => 4
|
||||
...
|
||||
```:
|
||||
```
|
||||
|
@ -18,7 +18,7 @@ fn main() {
|
||||
if key == '' {
|
||||
continue
|
||||
}
|
||||
m[key] = m[key] + 1
|
||||
m[key] = m[key] + 1 // TODO m[key]++
|
||||
}
|
||||
}
|
||||
// Sort the keys
|
||||
@ -51,6 +51,7 @@ fn filter_word(word string) string {
|
||||
return word.substr(start, end)
|
||||
}
|
||||
|
||||
// TODO remove once it's possible to call word[i].is_letter()
|
||||
fn is_letter(c byte) bool {
|
||||
return c.is_letter()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user