Skip to content

Commit 9ec0f73

Browse files
committed
Fix indentation on examples
1 parent 6afbc7b commit 9ec0f73

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ To sign HTTP requests from a client, wrap an `http.Client`'s transport with `New
2929

3030
```go
3131
client := http.Client{
32-
// Wrap the transport:
33-
Transport: httpsig.NewSignTransport(http.DefaultTransport, httpsig.WithSignEcdsaP256Sha256("key1", privKey)),
32+
// Wrap the transport:
33+
Transport: httpsig.NewSignTransport(http.DefaultTransport,
34+
httpsig.WithSignEcdsaP256Sha256("key1", privKey)),
3435
}
3536

3637
var buf bytes.Buffer
@@ -40,7 +41,7 @@ var buf bytes.Buffer
4041

4142
resp, err := client.Post("https://some-url.com", "application/json", &buf)
4243
if err != nil {
43-
return
44+
return
4445
}
4546
defer resp.Body.Close()
4647

0 commit comments

Comments
 (0)