File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,6 @@ int main()
23
23
advance (it1, 5 ); // This takes linear time
24
24
std::cout << " Winner before 5 years was : " << *it << std::endl;
25
25
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.
27
27
// it1 += 2; // Compiler error
28
28
}
Original file line number Diff line number Diff line change @@ -23,6 +23,6 @@ int main()
23
23
advance (it1, 5 ); // This takes linear time
24
24
std::cout << " Winner before 5 years was : " << *it << std::endl;
25
25
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.
27
27
it1 += 2 ; // Compiler error
28
28
}
You can’t perform that action at this time.
0 commit comments