Update lambda examples in coding style doc.

This commit is contained in:
Jeff Young 2020-05-12 18:21:18 +01:00
parent 724c669434
commit f679be4101
1 changed files with 2 additions and 2 deletions

View File

@ -500,7 +500,7 @@ The braces and statements of the body should be indented as you would a method,
with the braces lined up under the capture block:
~~~~~~~~~~~~~{.cpp}
auto belowCondition = [] ( const SELECTION& aSel )
auto belowCondition = []( const SELECTION& aSel )
{
return g_CurrentSheet->Last() != g_RootSheet;
};
@ -510,7 +510,7 @@ or:
~~~~~~~~~~~~~{.cpp}
auto belowCondition =
[] ( const SELECTION& aSel )
[]( const SELECTION& aSel )
{
return g_CurrentSheet->Last() != g_RootSheet;
};