From aaf6fed9d9087f4203d76102b9cdb43ca706a4e5 Mon Sep 17 00:00:00 2001 From: eslopfer Date: Mon, 7 Nov 2022 19:14:41 +0000 Subject: [PATCH] docs(modify_letter): specify what to do when there is an empty string or an empty letter --- subjects/modify_letter/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subjects/modify_letter/README.md b/subjects/modify_letter/README.md index b1d7cd47..e2b2ea5c 100644 --- a/subjects/modify_letter/README.md +++ b/subjects/modify_letter/README.md @@ -8,6 +8,10 @@ Create a **function** `remove_letter_insensitive` that returns a string without Create a **function** `swap_letter_case` that returns a string swapping the case for the chosen letter. +If there is an empty character in the arguments, the function should return the string as being passed. + +If there is an empty string, it should return an empty string. + ### Expected Functions ```rust