From fa33aefdcd8e32e89bea6946405f67a25969d8d3 Mon Sep 17 00:00:00 2001 From: Alphonse Mehounme <52801872+AlphonseMehounme@users.noreply.github.com> Date: Thu, 2 Jan 2025 23:12:11 +0100 Subject: [PATCH] add exercism rust second challenge result --- Rust/Exercism/reverse_string.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Rust/Exercism/reverse_string.rs diff --git a/Rust/Exercism/reverse_string.rs b/Rust/Exercism/reverse_string.rs new file mode 100644 index 0000000..711e2a3 --- /dev/null +++ b/Rust/Exercism/reverse_string.rs @@ -0,0 +1,15 @@ +pub fn reverse(input: &str) -> String { + input.chars().rev().collect() +} + + + + + +[package] +edition = "2021" +name = "reverse_string" +version = "1.2.0" + +[features] +grapheme = []