mainmatter / 100-exercises-to-learn-rust

A self-paced course to learn Rust, one exercise at a time.
https://rust-exercises.com
5.48k stars 929 forks source link

Questionable assignment in (06) ticket_management (11) mutable_slices #26

Closed Burnus closed 2 months ago

Burnus commented 4 months ago

Should the question on line 3 really be about &mut [str], not &mut str? I mean, you can easily take an array here, but neither the tests nor the TODO indicate that you should.

timmyjose commented 4 months ago

In addition, make_ascii_lowercase is incorrect since it cannot handle Unicode, and it's not mentioned in the description that only ASCII characters are supported (granted the tests in the file only have ASCII).