Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn count_spaces(text: Vec<u8>) -> usize {
- text.split(|c| c == 32u8).count()
- }
- fn count_spaces(text: Vec<u8>) -> usize {
- text.split(|&c| c == 32u8).count()
- }
- fn count_spaces(text: Vec<u8>) -> usize {
- text.split(|c| *c == 32u8).count()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement