From be5e2c518c3de9efc002f4abcc30ac2ed58fcff7 Mon Sep 17 00:00:00 2001 From: Miguel Elias dos Santos Date: Fri, 3 Nov 2023 22:15:13 +1100 Subject: [PATCH] Small README improvements --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8ce6073..2bc086e 100644 --- a/README.md +++ b/README.md @@ -243,18 +243,18 @@ user, _, userErr := c.Users.Get(ctx, "myuser") **NOTE:** This is an alpha feature. Future changes might break compatibility, until a stable version is released. ```go - mhc := mock.NewMockedHTTPClient( +mockedHTTPClient := mock.NewMockedHTTPClient( mock.WithRequestMatchPages( - mock.GetOrgsReposByOrg, - []github.Repository{{Name: github.String(repoOne)}}, - []github.Repository{{Name: github.String(repoTwo)}}, + mock.GetOrgsReposByOrg, + []github.Repository{{Name: github.String(repoOne)}}, + []github.Repository{{Name: github.String(repoTwo)}}, ), // The rate limiter will allow 10 requests per second, and a burst size of 1. // These two options together mean that the rate of requests will be strictly enforced, so if any two requests are // made less than 1/10th of a second apart, the latter will be refused and come back with a rate limit error. mock.WithRateLimit(10, 1), - ) +) ``` ## Why