Updated output comment location for improved readability.

Reading the output before reading the line that would result in such output seemed to interrupt the flow of reading.
This commit is contained in:
Ian Dinwoodie
2019-05-19 17:54:39 -04:00
parent d82d783495
commit 040aedb6ce
7 changed files with 46 additions and 36 deletions

View File

@@ -95,8 +95,8 @@ int main()
addLettuce().
addTomato().
build();
// Output: 2 patties, pepperoni, lettuce, tomato
burger->getDescription();
// Output: 2 patties, pepperoni, lettuce, tomato
// One triple patty buger with everything.
std::shared_ptr<Burger> burger2 = BurgerBuilder(3).
@@ -105,8 +105,8 @@ int main()
addLettuce().
addTomato().
build();
// Output: 3 patties, cheese, pepperoni, lettuce, tomato
burger2->getDescription();
// Output: 3 patties, cheese, pepperoni, lettuce, tomato
return 0;
}