From 8c3cc7df62cf58fce89a353c959c44412c668b06 Mon Sep 17 00:00:00 2001 From: YosefSiebzener <92353066+YosefSiebzener@users.noreply.github.com> Date: Wed, 23 Nov 2022 13:37:32 -0500 Subject: [PATCH] docs: Update README.md (#2334) Corrected quote from Wikipedia. --- decorator/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/decorator/README.md b/decorator/README.md index 9c97009ca..3df72d667 100644 --- a/decorator/README.md +++ b/decorator/README.md @@ -35,7 +35,8 @@ Wikipedia says > be added to an individual object, either statically or dynamically, without affecting the behavior > of other objects from the same class. The decorator pattern is often useful for adhering to the > Single Responsibility Principle, as it allows functionality to be divided between classes with -> unique areas of concern. +> unique areas of concern as well as to the Open-Closed Principle, by allowing the functionality +> of a class to be extended without being modified. **Programmatic Example**