From 70ad23a4d95b1c8bea887e61f80188eee5e8d1e5 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Tue, 27 Feb 2024 13:21:20 -0500 Subject: [PATCH] adding one line of comment --- lectures/14_stacks_queues/README.md | 1 + lectures/14_stacks_queues/multiply.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/lectures/14_stacks_queues/README.md b/lectures/14_stacks_queues/README.md index 81a69e3..1b71a20 100644 --- a/lectures/14_stacks_queues/README.md +++ b/lectures/14_stacks_queues/README.md @@ -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; diff --git a/lectures/14_stacks_queues/multiply.cpp b/lectures/14_stacks_queues/multiply.cpp index 3bb1886..a9c0198 100644 --- a/lectures/14_stacks_queues/multiply.cpp +++ b/lectures/14_stacks_queues/multiply.cpp @@ -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;