Skip to content

Commit f28bfbb

Browse files
authored
small tweak
1 parent efc6200 commit f28bfbb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

content/posts/cpp-for-cscharp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,19 +333,19 @@ These are all the ways you can declare an explicit return type in C++ syntax:
333333
```cpp
334334
// cpp
335335

336-
// normal return type
336+
// normal
337337
int Add(int a, int b)
338338
{
339339
return a + b;
340340
}
341341

342-
// trailing return type
342+
// trailing
343343
auto Add(int a, int b) -> int // notice the "-> int"
344344
{
345345
return a + b;
346346
}
347347

348-
// trailing return type
348+
// trailing (lambda)
349349
auto add = [](int a, int b) -> int // notice the "-> int"
350350
{
351351
return a + b;

0 commit comments

Comments
 (0)