We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12aa81f commit d2c07a8Copy full SHA for d2c07a8
reverse-string/src/lib.rs
@@ -1,3 +1,6 @@
1
+
2
3
pub fn reverse(input: &str) -> String {
- unimplemented!("Write a function to reverse {}", input);
4
+ let drow: String = input.chars().rev().collect::<String>();
5
+ return drow;
6
}
0 commit comments