8000 bug fixed · sockstack/design-patterns-by-php@a2bcb85 · GitHub
[go: up one dir, main page]

Skip to content

Commit a2bcb85

Browse files
fising王祥中
authored andcommitted
bug fixed
1 parent 8cb789e commit a2bcb85

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

files/chapter2.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ConcreteStrategyB extends Strategy
3737
}
3838

3939
/**
40-
* 算法a
40+
* 算法c
4141
*/
4242
class ConcreteStrategyC extends Strategy
4343
{
@@ -92,10 +92,10 @@ class Context
9292
case 'a':
9393
$this->strategy = new ConcreteStrategyA();
9494
break;
95-
case 'a':
95+
case 'b':
9696
$this->strategy = new ConcreteStrategyB();
9797
break;
98-
case 'a':
98+
case 'c':
9999
$this->strategy = new ConcreteStrategyC();
100100
break;
101101
}

0 commit comments

Comments
 (0)
0