diff --git a/02-types/tasks/02-modifyString.cpp b/02-types/tasks/02-modifyString.cpp index d6bce962..7bef4245 100644 --- a/02-types/tasks/02-modifyString.cpp +++ b/02-types/tasks/02-modifyString.cpp @@ -1,8 +1,10 @@ #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"};