From 541e97e9496c495606a8832436a02af423ab8707 Mon Sep 17 00:00:00 2001 From: AlphonseMehounme Date: Thu, 5 Dec 2024 20:44:41 +0100 Subject: [PATCH] add solution to mutable references challenge --- Rust/rustifinity/challenges/mutable-references.rs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Rust/rustifinity/challenges/mutable-references.rs diff --git a/Rust/rustifinity/challenges/mutable-references.rs b/Rust/rustifinity/challenges/mutable-references.rs new file mode 100644 index 0000000..c3b7e10 --- /dev/null +++ b/Rust/rustifinity/challenges/mutable-references.rs @@ -0,0 +1,4 @@ +pub fn append_suffix(s: &mut String, suffix: &str) { + // Your code here... + s.push_str(suffix); +}