Skip to content

Commit be5e2c5

Browse files
Small README improvements
1 parent 5771525 commit be5e2c5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,18 +243,18 @@ user, _, userErr := c.Users.Get(ctx, "myuser")
243243
**NOTE:** This is an alpha feature. Future changes might break compatibility, until a stable version is released.
244244

245245
```go
246-
mhc := mock.NewMockedHTTPClient(
246+
mockedHTTPClient := mock.NewMockedHTTPClient(
247247
mock.WithRequestMatchPages(
248-
mock.GetOrgsReposByOrg,
249-
[]github.Repository{{Name: github.String(repoOne)}},
250-
[]github.Repository{{Name: github.String(repoTwo)}},
248+
mock.GetOrgsReposByOrg,
249+
[]github.Repository{{Name: github.String(repoOne)}},
250+
[]github.Repository{{Name: github.String(repoTwo)}},
251251
),
252252

253253
// The rate limiter will allow 10 requests per second, and a burst size of 1.
254254
// These two options together mean that the rate of requests will be strictly enforced, so if any two requests are
255255
// made less than 1/10th of a second apart, the latter will be refused and come back with a rate limit error.
256256
mock.WithRateLimit(10, 1),
257-
)
257+
)
258258
```
259259

260260
## Why

0 commit comments

Comments
 (0)