Skip to content

Commit

Permalink
Typo in higher_order_functions_cpp.md (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcooper8472 authored Nov 15, 2024
1 parent fa5d894 commit f114b24
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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_.
Expand Down

0 comments on commit f114b24

Please sign in to comment.