Skip to content

Commit

Permalink
doc: simplify example code
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Oct 23, 2021
1 parent 3c02449 commit 884e7d1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,7 @@ methods:
Maps may be further combined with the handler.ServiceMap type to allow
different services to work together:
func GetStatus(context.Context) (string, error) {
return "all is well", nil
}
func GetStatus(context.Context) string { return "all is well" }
assigner := handler.ServiceMap{
"Math": mathService,
Expand Down

0 comments on commit 884e7d1

Please sign in to comment.