Merge pull request #4 from suhaibmujahid/patch-1

Update proxy.go
This commit is contained in:
Ismayil Malik
2020-11-03 13:40:42 +04:00
committed by GitHub

View File

@@ -21,7 +21,7 @@ func (b *OpenBar) Welcome(h Human) error {
}
type BarProxy struct {
bar Bar
Bar
}
func (b *BarProxy) Welcome(h Human) error {
@@ -33,5 +33,5 @@ func (b *BarProxy) Welcome(h Human) error {
return errors.New("Males under 18 not allowed.")
}
return b.bar.Welcome(h)
return b.Bar.Welcome(h)
}