From: tomgrbz <62816199+tomgrbz@users.noreply.github.com> Date: Thu, 20 Jun 2024 08:18:55 +0000 (-0400) Subject: Remove array/slice syntax from argument &mut str in TODO comment for lowercase func... X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=c86360f3c4057616b56e4d3b9940d91bcffcb8a3;p=rust_exercises.git Remove array/slice syntax from argument &mut str in TODO comment for lowercase func (#99) Co-authored-by: thomasgrbic --- diff --git a/exercises/06_ticket_management/11_mutable_slices/src/lib.rs b/exercises/06_ticket_management/11_mutable_slices/src/lib.rs index 1604a91..9fc8155 100644 --- a/exercises/06_ticket_management/11_mutable_slices/src/lib.rs +++ b/exercises/06_ticket_management/11_mutable_slices/src/lib.rs @@ -1,6 +1,6 @@ // TODO: Define a function named `lowercase` that converts all characters in a string to lowercase, // modifying the input in place. -// Does it need to take a `&mut String`? Does a `&mut [str]` work? Why or why not? +// Does it need to take a `&mut String`? Does a `&mut str` work? Why or why not? #[cfg(test)] mod tests {