Skip to content

Commit 5bd8319

Browse files
burblebeetkoeppe
authored andcommitted
CWG2644 Incorrect comment in example
Fixes NB US 042 (C++23 CD).
1 parent 7ba74b8 commit 5bd8319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/expressions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2358,7 +2358,7 @@
23582358
return x+2;
23592359
}(); // Updates \tcode{::x} to 6, and initializes \tcode{y} to 7.
23602360

2361-
auto z = [a = 42](int a) { return 1; }; // error: parameter and local variable have the same name
2361+
auto z = [a = 42](int a) { return 1; }; // error: parameter and conceptual local variable have the same name
23622362
auto counter = [i=0]() mutable -> decltype(i) { // OK, returns \tcode{int}
23632363
return i++;
23642364
};

0 commit comments

Comments
 (0)