Skip to content

Commit

Permalink
Fix generic package documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bufdev committed Feb 12, 2017
1 parent 8888988 commit c3e0f5c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion modules/generic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ type fooModule struct {
config *fooConfig
}

func (m *fooModule) Initialize(contoller Controller, config interface{}) error {
func (m *fooModule) Initialize(
contoller generic.Controller,
config interface{},
) error {
m.Controller = controller
m.config = config.(*fooConfig)
return nil
Expand Down
5 changes: 4 additions & 1 deletion modules/generic/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
// config *fooConfig
// }
//
// func (m *fooModule) Initialize(contoller Controller, config interface{}) error {
// func (m *fooModule) Initialize(
// contoller generic.Controller,
// config interface{},
// ) error {
// m.Controller = controller
// m.config = config.(*fooConfig)
// return nil
Expand Down

0 comments on commit c3e0f5c

Please sign in to comment.