Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo #120

Merged
merged 1 commit into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ theory: |
В этом уроке мы узнали, что функции можно перегружать по типу передаваемых параметров и по количеству передаваемых параметров.

instructions: |
Напишите две перегруженные функции `std::string GetFullName()`. Эти функции должны работать так: если в функцию передали имя и фамилию, то она возвращает полное имя, если в функцию не передали аргументы, она вернет строку "Anonimus".
Напишите две перегруженные функции `std::string GetFullName()`. Эти функции должны работать так: если в функцию передали имя и фамилию, то она возвращает полное имя, если в функцию не передали аргументы, она вернет строку "Anonymous".

tips:
- |
Expand Down
2 changes: 1 addition & 1 deletion modules/50-functions/60-types-overloads-function/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ std::string GetFullName(std::string first_name, std::string last_name) {
}

std::string GetFullName() {
return "Anonimus";
return "Anonymous";
}
// END
2 changes: 1 addition & 1 deletion modules/50-functions/60-types-overloads-function/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@

TEST_CASE("testing the GetFullName function") {
CHECK(GetFullName("John", "Dohe") == "John Dohe");
CHECK(GetFullName() == "Anonimus");
CHECK(GetFullName() == "Anonymous");
}
Loading