Skip to content

Commit adc4536

Browse files
authored
clean up docs (Azure#17697)
1 parent bf1e3fe commit adc4536

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sdk/keyvault/azcertificates/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ func main() {
333333
```
334334

335335
### List Certificates
336-
[ListCertificates](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azcertificates#Client.ListCertificates)
336+
[NewListCertificatesPager](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azcertificates#Client.NewListCertificatesPager)
337337
lists the properties of all certificates in the specified Key Vault.
338338
```go
339339
import (
@@ -363,7 +363,7 @@ func main() {
363363
panic(err)
364364
}
365365

366-
pager := client.ListCertificates(nil)
366+
pager := client.NewListCertificatesPager(nil)
367367
for pager.More() {
368368
page, err := pager.NextPage(context.TODO())
369369
if err != nil {
@@ -380,13 +380,13 @@ func main() {
380380
## Troubleshooting
381381
### Error Handling
382382

383-
All I/O operations will return an `error` that can be investigated to discover more information about the error. In addition, you can investigate the raw response of any response object:
383+
All I/O operations will return an `error` that can be investigated to discover more information about the error. In addition, you can investigate the raw response of any error object:
384384
```golang
385385
resp, err := client.GetSecret(context.Background(), "mySecretName", nil)
386386
if err != nil {
387-
var httpErr azcore.HTTPResponse
388-
if errors.As(err, &httpErr) {
389-
// investigate httpErr.RawResponse()
387+
var respErr *azcore.ResponseError
388+
if errors.As(err, &respErr) {
389+
// investigate respErr.RawResponse
390390
}
391391
}
392392
```

0 commit comments

Comments
 (0)