Skip to content

Commit

Permalink
Typo in higher_order_functions_cpp.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fcooper8472 authored Oct 11, 2024
1 parent 3aeed3c commit 83805c4
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 83805c4

Please sign in to comment.