diff --git a/02-types/tasks/02-modifyString.cpp b/02-types/tasks/02-modifyString.cpp index d6bce962..e9148f6d 100644 --- a/02-types/tasks/02-modifyString.cpp +++ b/02-types/tasks/02-modifyString.cpp @@ -1,9 +1,9 @@ #include #include -// TODO: Implement modifyString() -// It should modify passed string to text "Other string" - +void modifyString(std::string& str){ + str = "Other string" +} int main() { std::string str{"Some string"}; modifyString(str);