8000 Merge pull request #3 from skywingfs/patch-1 · sockstack/design-patterns-by-php@d9dfbdb · GitHub
[go: up one dir, main page]

Skip to content

Commit d9dfbdb

Browse files
authored
Merge pull request hulin32#3 from skywingfs/patch-1
Update chapter1.md
2 parents 0ba56ef + d5ba38d commit d9dfbdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/chapter1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class OperationFactory
9898
// 客户端代码
9999
$operation = OperationFactory::createOperation('+');
100100
$operation->setA(1);
101-
$operation->setA(2);
101+
$operation->seB(2);
102102
echo $operation->getResult()."\n";
103103
```
104104

@@ -112,4 +112,4 @@ echo $operation->getResult()."\n";
112112
113113
> 高内聚,低耦合
114114
115-
下一章:[第二章 商场促销 --- 策略模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter2.md)
115+
下一章:[第二章 商场促销 --- 策略模式](https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter2.md)

0 commit comments

Comments
 (0)
0