Skip to content

Commit f35932b

Browse files
author
Colin Robertson
authored
Merge pull request MicrosoftDocs#109 from KillzoneKid/master
Update lambda-expressions-in-cpp.md
2 parents 5350144 + 2c83374 commit f35932b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/cpp/lambda-expressions-in-cpp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pNums = make_unique<vector<int>>(nums);
130130
In addition to capturing variables, a lambda can accept input parameters. A parameter list (*lambda declarator* in the Standard syntax) is optional and in most aspects resembles the parameter list for a function.
131131
132132
```cpp
133-
int y = [] (int first, int second)
133+
auto y = [] (int first, int second)
134134
{
135135
return first + second;
136136
};
@@ -371,4 +371,4 @@ auto Sqr = [](int t) __declspec(code_seg("PagedMem")) -> int { return t*t; };
371371
[C++ Language Reference](../cpp/cpp-language-reference.md)
372372
[Function Objects in the C++ Standard Library](../standard-library/function-objects-in-the-stl.md)
373373
[Function Call](../cpp/function-call-cpp.md)
374-
[for_each](../standard-library/algorithm-functions.md#for_each)
374+
[for_each](../standard-library/algorithm-functions.md#for_each)

0 commit comments

Comments
 (0)