Mid-Level
October 4, 2026Spot the bug: Rust
One snippet. Find the bug, or prove there isn't one.
rust
1fn count_vowels(text: &str) -> usize {
2 text.chars()
3 .filter(|c| matches!(c.to_ascii_lowercase(), 'a' | 'e' | 'i' | 'o' | 'u'))
4 .count()
5}Click the lines that carry the problem.
Your verdict
One attempt per day. The answer shows up right after.
Keep your streak
Create an account to keep your streak and track your progress.