We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b64238 commit 1899e44Copy full SHA for 1899e44
docs/cpp/examples-of-lambda-expressions.md
@@ -3,7 +3,6 @@ description: "Learn more about: Examples of Lambda Expressions"
3
title: "Examples of Lambda Expressions"
4
ms.date: "05/07/2019"
5
helpviewer_keywords: ["lambda expressions [C++], examples"]
6
-ms.assetid: 52506b15-0771-4190-a966-2f302049ca86
7
---
8
# Examples of Lambda Expressions
9
@@ -424,7 +423,7 @@ int main()
424
423
// Create another vector that contains index values.
425
vector<int> indices(3);
426
indices[0] = 0;
427
- indices[1] = -1; // This is not a valid subscript. It will trigger an exception.
+ indices[-1] = 1; // This is not a valid subscript. It will trigger an exception.
428
indices[2] = 2;
429
430
// Use the values from the vector of index values to
0 commit comments