Commit acb342cc authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed a typo in the tutorial on for-loops

parent 3c088a04
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ f( std::integral_constant< 1 >{} );
f( std::integral_constant< 2 >{} );
f( std::integral_constant< 3 >{} );
...
f( std::integral_constant< N >{} );
f( std::integral_constant< N-1 >{} );
```

Notice that each iteration index is represented by its own distinct type using \ref std::integral_constant. Hence, the functor `f` must be generic, e.g. a _generic lambda expression_ such as in the following example: