Skip to content

Commit

Permalink
fix: trailing return types in lambdas
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabh672003 committed Nov 10, 2023
1 parent 9420a68 commit d23816d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CPP/07-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ This kind of declaration is used in lambdas and also preferred to be used in tem
Lambdas:

```cpp
auto function_name->return_type = []() { /*function body*/ }
auto function_name = []() -> return_type { /*function body*/ }
```
Templates:
Expand Down

0 comments on commit d23816d

Please sign in to comment.