Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 02cpp1/sec02PassByValueOrReference.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ Instead of declaring a variable and setting it equal to the return value of a fu
```cpp
void GenerateInPlace(const int &a, ImmovableData &v)
{
for(int i = 0; i < b; i++)
for(int i = 0; i < a; i++)
{
//Do some data generation
...
Expand All @@ -329,7 +329,7 @@ void GenerateInPlace(const int &a, ImmovableData &v)
int main()
{
ImmovableData data;
makeListInPlace(100000, data);
GenerateInPlace(100000, data);

return 0;
}
Expand Down