diff --git a/software_architecture_and_design/functional/higher_order_functions_cpp.md b/software_architecture_and_design/functional/higher_order_functions_cpp.md index 08081fbc..639a02b6 100644 --- a/software_architecture_and_design/functional/higher_order_functions_cpp.md +++ b/software_architecture_and_design/functional/higher_order_functions_cpp.md @@ -140,7 +140,7 @@ int result = 1; for (const auto& op: ops) { result = op(result); } -std::cout << result << std::end; // prints 6 +std::cout << result << std::endl; // prints 6 ``` `std::function` is an example of _type erasure_.