Skip to content

Commit

Permalink
doc: Optional deps: fix typo (uber-go#260)
Browse files Browse the repository at this point in the history
Line 209 looks like a typo.

According to description above, "If an optional field is not available
in the container, the constructor will receive a zero value for the
field.".
  • Loading branch information
laughmetal authored and abhinav committed Dec 30, 2019
1 parent cfca627 commit 5148aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
// will receive a zero value for the field.
//
// func NewUserGateway(p UserGatewayParams, log *log.Logger) (*UserGateway, error) {
// if p.Cache != nil {
// if p.Cache == nil {
// log.Print("Logging disabled")
// }
// // ...
Expand Down

0 comments on commit 5148aac

Please sign in to comment.