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
commit edc1f75982
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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