From 8485fa823c74413dc2d2fc8ebe990f5afba1776c Mon Sep 17 00:00:00 2001 From: Andreas Krug <153394595+Andreas-Krug@users.noreply.github.com> Date: Sun, 11 Jan 2026 08:42:45 +0100 Subject: [PATCH] [expr.prim.lambda.capture] Insert linebreak in comment Linebreak analog Example 2 with "// have the same name" moved into new line --- source/expressions.tex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/expressions.tex b/source/expressions.tex index f520442548..92490e1783 100644 --- a/source/expressions.tex +++ b/source/expressions.tex @@ -2800,7 +2800,8 @@ return x+2; }(); // Updates \tcode{::x} to 6, and initializes \tcode{y} to 7. -auto z = [a = 42](int a) { return 1; }; // error: parameter and conceptual local variable have the same name +auto z = [a = 42](int a) { return 1; }; // error: parameter and conceptual local variable + // have the same name auto counter = [i=0]() mutable -> decltype(i) { // OK, returns \tcode{int} return i++; };