diff --git a/examples/word_counter/README.md b/examples/word_counter/README.md index b13542b3fb..d213460211 100644 --- a/examples/word_counter/README.md +++ b/examples/word_counter/README.md @@ -21,4 +21,4 @@ anyone => 2 any => 1 an => 4 ... -```: +``` diff --git a/examples/word_counter/word_counter.v b/examples/word_counter/word_counter.v index 81761183e3..668fe96f94 100644 --- a/examples/word_counter/word_counter.v +++ b/examples/word_counter/word_counter.v @@ -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() }