Skip to content

Commit 05030a5

Browse files
committed
fix doc issue
1 parent 1f17733 commit 05030a5

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/patterns/creational/FactoryMethod.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// (*) when you don’t know beforehand the exact types and dependencies of the objects your code should work with.
77
// (**) when you want to provide users of your library or framework with a way to extend its internal components.
88
// (***)when you want to save system resources by reusing existing objects instead of rebuilding them each time.
9+
910
// UML: docs/uml/patterns_creational_factorymethod.drawio.svg
1011

1112
#include <iostream>

src/patterns/creational/Singleton.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// (*) when a class in your program should have just a single instance available to all clients; for example, a single database object shared by different parts of the program.
77
// (**) when you need stricter control over global variables.
88

9+
// UML: docs/uml/patterns_creational_singleton.drawio.svg
10+
911
#include <iostream>
1012

1113
namespace

0 commit comments

Comments
 (0)