Skip to content

Commit

Permalink
docs(readme): Modify sample code bugs (#3394)
Browse files Browse the repository at this point in the history
  • Loading branch information
go-bai committed Nov 17, 2022
1 parent a0acf1d commit 234a1d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -1854,7 +1854,7 @@ func main() {
// Initializing the server in a goroutine so that
// it won't block the graceful shutdown handling below
go func() {
if err := srv.ListenAndServe(); err != nil && errors.Is(err, http.ErrServerClosed) {
if err := srv.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) {
log.Printf("listen: %s\n", err)
}
}()
Expand Down

0 comments on commit 234a1d3

Please sign in to comment.