Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tirando o tolowercase
  • Loading branch information
heitor582 committed Nov 15, 2020
commit 9c24fe55a582c74bb0ec9f6cac3ba005f93d7125
2 changes: 1 addition & 1 deletion src/rust/palindromo/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fn main() {
}
pub fn palindromo(mut word: String) -> bool {
word = word.to_lowercase().split_whitespace().collect::<String>();
let reversed_string: String = word.chars().rev().collect::<String>().to_lowercase();
let reversed_string: String = word.chars().rev().collect::<String>();
if word.len() <= 1 {
return true;
}
Expand Down