Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 617f418

Browse files
denghuaguangsenghoo
authored andcommittedMar 8, 2021
fix prototype
Change-Id: Icbccceb5c530be08f1fcdee39287a508acae585c
1 parent 8b065d3 commit 617f418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎07_prototype/prototype.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func NewPrototypeManager() *PrototypeManager {
1616
}
1717

1818
func (p *PrototypeManager) Get(name string) Cloneable {
19-
return p.prototypes[name]
19+
return p.prototypes[name].Clone()
2020
}
2121

2222
func (p *PrototypeManager) Set(name string, prototype Cloneable) {

0 commit comments

Comments
 (0)
Failed to load comments.