Skip to content

Commit a0daff7

Browse files
authored
Template method: small typo fix (#6)
* fix typo in template-method example * remove needless spaces
1 parent 32a337e commit a0daff7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

behavioral/template-method/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ TemplateMethod says: But I am doing the bulk of the work anyway
2323
2424
Same client code can work with different concrete implementations:
2525
TemplateMethod says: I am doing the bulk of the work
26-
ConcreteStruct1 says: Implemented Operation1
26+
ConcreteStruct2 says: Implemented Operation1
2727
TemplateMethod says: But I let subclasses override some operations
28-
ConcreteStruct1 says: Implemented Operation2
28+
ConcreteStruct2 says: Implemented Operation2
2929
TemplateMethod says: But I am doing the bulk of the work anyway
3030
```

behavioral/template-method/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ fn main() {
6262
println!();
6363

6464
println!("Same client code can work with different concrete implementations:");
65-
client_code(ConcreteStruct1);
65+
client_code(ConcreteStruct2);
6666
}

0 commit comments

Comments
 (0)