From 33153fb1da042f5604f195c296e2b82e9a6b9da6 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 16 Apr 2022 18:38:21 +0300 Subject: Improved comment --- .../Solutions Sem. 08/ex3/WordCollection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Year 1/Object-oriented Programming') diff --git a/Year 1/Object-oriented Programming/Solutions Sem. 08/ex3/WordCollection.cpp b/Year 1/Object-oriented Programming/Solutions Sem. 08/ex3/WordCollection.cpp index cd651b4..4cfdbb5 100644 --- a/Year 1/Object-oriented Programming/Solutions Sem. 08/ex3/WordCollection.cpp +++ b/Year 1/Object-oriented Programming/Solutions Sem. 08/ex3/WordCollection.cpp @@ -16,7 +16,7 @@ void WordCollection::copyFrom(const WordCollection& other) { words = new DynStr[length]; sortedPos = new int[length]; - for (int i = 0; i < length; i++) { // Must be < length, since we can have valid items outside the count range in words + for (int i = 0; i < length; i++) { // Must be < length, since storedWordsCount could be > count words[i] = other.words[i]; sortedPos[i] = other.sortedPos[i]; } -- cgit v1.3.1-23-gd82d