Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step 1 already done in iterators2.rs #558

Closed
FabienTregan opened this issue Oct 11, 2020 · 1 comment
Closed

Step 1 already done in iterators2.rs #558

FabienTregan opened this issue Oct 11, 2020 · 1 comment

Comments

@FabienTregan
Copy link

This might be related to #359, but iterators2.rs says:

// Step 1. Complete the `capitalize_first` function to pass the first two cases.

it seems that this is already the case:

pub fn capitalize_first(input: &str) -> String {
let mut c = input.chars();
match c.next() {
None => String::new(),
Some(first) => first.collect::<String>() + c.as_str(),
}
}

I don't know whether line 16 should be partially replaced with ??? or if step 1 needs to be removed.

@FabienTregan
Copy link
Author

(sorry, closed, weird behaviour with my IDE integration telling me that the test passed when it did not, I'll investigate)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant