From 5d0fa768878f0eaedc61b1be5b5446a72c41d4b6 Mon Sep 17 00:00:00 2001 From: Michael McLeod Date: Mon, 9 Mar 2026 10:08:55 +0000 Subject: [PATCH] Fix typos --- 02cpp1/sec02PassByValueOrReference.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/02cpp1/sec02PassByValueOrReference.md b/02cpp1/sec02PassByValueOrReference.md index 1da826948..ee7111b50 100644 --- a/02cpp1/sec02PassByValueOrReference.md +++ b/02cpp1/sec02PassByValueOrReference.md @@ -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 ... @@ -329,7 +329,7 @@ void GenerateInPlace(const int &a, ImmovableData &v) int main() { ImmovableData data; - makeListInPlace(100000, data); + GenerateInPlace(100000, data); return 0; }