adding one line of comment

This commit is contained in:
Jidong Xiao
2024-02-27 13:21:20 -05:00
parent 390fabf1f1
commit 70ad23a4d9
2 changed files with 2 additions and 0 deletions

View File

@@ -121,6 +121,7 @@ int main() {
MultiplyBy multiplyByTwo(2);
// use the functor as a function
// surprising: the object itself can be used like it's a function.
std::cout << "Result of multiplying 5 by 2: " << multiplyByTwo(5) << std::endl;
return 0;

View File

@@ -20,6 +20,7 @@ int main() {
MultiplyBy multiplyByTwo(2);
// use the functor as a function
// surprising: the object itself can be used like it's a function.
std::cout << "Result of multiplying 5 by 2: " << multiplyByTwo(5) << std::endl;
return 0;