Skip to content

Commit 4ce0ffe

Browse files
authored
Fix typo in example
1 parent 9ef1020 commit 4ce0ffe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ If your library already provides functions that don't accept context, you define
8484
func Send(body io.Reader) error {
8585
req,err := http.NewRequest(http.MethodPost, "http://example.com", body)
8686
if err != nil {
87-
return nil
87+
return err
8888
}
8989
_, err = http.DefaultClient.Do(req)
90-
if err !=nil{
90+
if err != nil{
9191
return err
9292
}
9393

0 commit comments

Comments
 (0)