Update proxy.go

This commit is contained in:
Suhaib Mujahid
2020-09-07 10:30:22 -04:00
committed by GitHub
parent 3391bbc9c4
commit df859a63d7

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)
}