Skip to content

Commit e3159ee

Browse files
v1
1 parent 143eefe commit e3159ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lesson1/Exercise04/Exercise_4.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ int main()
2323
advance(it1, 5); // This takes linear time
2424
std::cout << "Winner before 5 years was : " << *it << std::endl;
2525

26-
// Going back will compile time error as forward_list only allows us to move towards end.
26+
// Going back will result in compile time error as forward_list only allows us to move towards the end.
2727
// it1 += 2; // Compiler error
2828
}

Lesson1/Exercise04/Exercise_4_err.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ int main()
2323
advance(it1, 5); // This takes linear time
2424
std::cout << "Winner before 5 years was : " << *it << std::endl;
2525

26-
// Going back will compile time error as forward_list only allows us to move towards end.
26+
// Going back will result in compile time error as forward_list only allows us to move towards the end.
2727
it1 += 2; // Compiler error
2828
}

0 commit comments

Comments
 (0)